Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
It's hard to know whether the POSTMAN team consider this a feature, however it caused a bug for me, so I'm reporting it as one.
When a new endpoint is created it has a request URL. On receiving the response I save the response as an example so that I can use the mock servers.
I then change the url of the request. So far thats fine, the example in the documentation shows for this request.
However because the example response has a request URL that is independent/seperate from the request, this also needs manually updating to the new url - even though this example is associated with this request. If you don't update the example's request URL manually to match the new request URL the mock server, will respond according to the example response's request URL and not the request URL.
To Reproduce
Steps to reproduce the behavior:
Create a new get request at a URL (e.g /api/v1/users/list)
Save the response as an example response to this request
Create mock server, hit the mock url to make sure its responding accordingly.
Change the original request to a new URL (e.g /api/v1/admin/users/list)
Try to make a request on the mock server to this new URL - it won't exist as an endpoint
Change the request URL inside the example to the new one
Now try the mock server again on the new URL - it will work (I think you have to re-create the whole mock server if you change an example, but I'm not sure about this
Expected behavior
I would expect that the request URL for an example is the request URL that the example is associated against.
App information (please complete the following information):
Describe the bug
It's hard to know whether the POSTMAN team consider this a feature, however it caused a bug for me, so I'm reporting it as one.
To Reproduce Steps to reproduce the behavior:
/api/v1/users/list
)/api/v1/admin/users/list
)Expected behavior
I would expect that the request URL for an example is the request URL that the example is associated against.
App information (please complete the following information):