Imported Google Group message.
Date:Thursday, 28 May 2015 20:00:15 UTC+1.
On Thursday, May 28, 2015 at 11:46:30 AM UTC-7, Martin Buhr wrote:
Yes, the only middleware that is enabled on an Open API is IP Whitelisting, Organisation Level quotas and Version checking.
On Thursday, May 28, 2015 at 7:35:16 PM UTC+1, Jayadatta Vallabhaneni wrote:
Thanks Martin for the quick response. Does adding the headers also work in the same way?
On Thursday, May 28, 2015 at 11:31:51 AM UTC-7, Martin Buhr wrote:
Mocks only work on listed endpoints, as in, they are only triggered if the endpoint is either white listed, black listed or ignored.
I'd suggest adding it to the ignored list (white-list will disable all other endpoints as a wildcard).
Also, I just checked and mocks (and quite a few other middleware) are not supported in a keyless API, this is mainly because these middleware need a session object to operate correctly, and there is none for keyless APIs. So I suggest using basic auth or standard tokens if you are setting up a demo API
On Thursday, May 28, 2015 at 7:24:55 PM UTC+1, Jayadatta Vallabhaneni wrote:
I am trying to mock a response for one of the API. Basically, it is a keyless api with version enabled, check marked the mock box and added a rest response to the body. However, i am not seeing it after saving either in the front end or in the tyk_apis collection for this API id. Do we have to use any other authentication method for this to work?