REST Mock API -with no target Proxy

Hi,

Would like to know, if we have simpler REST based Mock API

1. Per link below, where @Dino indicates different mocks based on different criteria or requirements.

https://community.apigee.com/questions/43447/can-i-generate-a-rest-api-which-returns-mock-data.html

2.Verified below example but this has initial requirements or prerequisite which is not currently required.. Need simpler version instead with REST API with no Target

https://github.com/apigeecs/apigee-apimocker

3.This link indicates about nodejs-mock-api-proxy.zip

https://github.com/dzuluaga/apigee-tutorials/tree/master/apiproxies/nodejs-mock-api-proxy

Here this example when loaded to Apigee loads with “nock-helper.zip” and “node_modules.zip” which does not loads to Apigee Proxy properly

4. As per link below

https://github.com/sauliuz/amok/tree/master/examples/apigee-amok

Did not load major implementations as Proxy bundle

Just wanted to know, if we already have simplified version for REST Mock API (with no Target) which can be proxy bundled directly to Apigee and use without any other dependencies.

Like a sample proxy bundle which, covers every aspect to Mock REST type request and static response

0 1 953
1 REPLY 1

HI @Abiram Radhakrishnan

Not sure what you mean by "has initial requirements or prerequisite which is not currently required" and your point on "node_modules" not loading. Those are some working examples. Did you try them ? If you did and it did not work, can you please tell us what issue you found. Would be better if you can create a GitHub issue itself so that we can look into it.

Back to your question - how about using apistudio.io as mentioned by me here

To generate a mock, the above tools you mentioned can be easily used. Depending on what your use case it you can pick and choose. If you are looking at static mocks (that is same response for any request to an API resource), then apistudio, amok would be a good fit. If you are looking for dynamic mock responses (that is different response for /employees/1 and /employees/2), then apigee-apimocker is a good fit.