Sometimes we need to work with a mixture of real and mock APIs, for example using mocks for APIs that are not yet developed and real APIs for those that already exist.
To support this use case, you can use Traffic Parrot to forward HTTP requests to another endpoint instead of returning the default "not found" response.
You can use the proxy responses feature to provide a default response for unmatched requests:- Set a low priority like 10 for the mapping with the proxy response
- Leave default priority for other non-proxy response mappings
- Now any unmatched requests will return a response from the proxy mapping
No comments:
Post a Comment