I created a new collection with a single request to learn how to use Postman mock servers and, while I managed to successfully make it private, return different examples for a single route depending on query parameters… Everything broke down when attempting to return an example of a request that has a JSON body.
All I’m receiving now from the mock server is the following error:
{
"error": {
"name": "mockRequestNotFoundError",
"message": "Double check your method and the request path and try again.",
"header": "No matching requests"
}
}
There aren’t any other examples for the query and this one is the only request in the collection.
Using the x-mock-response-name header does, indeed, work. Although it’d be nice to know if there’s another solution to the problem, since I’m aiming to call a similar mock server with the same problem (and a fairly larger collection and set of examples) from an external app in the near future.
Let me know whatever other info would be useful (or what other format instead of the cropped images would). :))