Hi,
I want to create a API proxy that doesn't have a target and should return a hard-coded response. The purpose of creating this API proxy is to mock up my application with a back end proxy till the time the back end is not ready.
Also, is it possible to read this hard-coded response from a configuration file, i.e. when I change the content from the file it gets reflected in the proxy response.
Please suggest how the above can be achieved.
Many Thanks.
Hi @Karan Kapoor, you can also check the little project I have open sourced on GitHub which does exactly that. Its an API bundle which serves responses from the flat files as mock responses.
This is achieved with Node.js component in Apigee. Readme.md file give you some examples. https://github.com/sauliuz/amock
Fetch WSDL Error: Could not download resource. peer not authenticated. 6 Answers
Api proxy to Swagger code 5 Answers
Getting Error Creating Proxy from WSDL 2 Answers
deploy-bundle failed due to proxy 1 Answer
load balancing proxies 0 Answers