Fix spec for api factory.
Fix spec for api factory.

davengeo/github,befairyliu/github,durai145/github,anabhilash619/github,joshsoftware/github,wicky-info/github,peter-murach/github,yaoxiaoyong/github,samphilipd/github,cocktail-io/github,MalachiTatum/github,piotrmurach/github,firstval/github