Creating Mock from Request/Response Pair
Let MockMotor parse your requests and responses
It is a common situation when development provides a request/response pair saying. “This is our request, and this is the response we want to have.”
Perfect! We can do just that.
On the Responses page, click
Add Response... and then
From Request/Response Pair....
A new dialog appears. Paste your request and response into the dialog window.
You can provide the request and response with their HTTP headers:
Or, you can provide just the payloads:
In the second case, you'll have to provide the HTTP-related fields in the mock response after it is created.
Create and MockMotor creates a new mock response that matches your request and returns your response.