Our application does calls to a third party API for completing a few tasks.
This endpoint has an issue in the test environment, and management has asked us to mock this environment so when the app or anyone tries to call www.test.com from the test machine, it gets information from a mock server rather than the actual www.test.com.
I tried to figure out different options but everything mocks if we create a mock object and then calls the mock object.
I am trying to figure out a way in which whenever someone calls www.test.com it should show content from localhost.
I don't want to edit the host file. Is there any other way?
Made the app configurable, so we can specify which endpoint the app should call.
I used Mockserver in postman to simulate this . But postmand doesn't support query parameter
so for v1/api?q=1 and v1/api?q=2 it returns the same response
Could someone help how to create a mockserver that gives different response for different query parmaeter