Mock

The Mock interceptor enables the user to create a default response to be displayed whenever the API is invoked. The following pieces of information may be entered:

  • Headers: defining the response headers, with each header being separated by key and value. E.g.: quantity_requests = 20, with the delimiter being = or :. In case you need to insert more than one header in your Mock, you may do so by placing one value per line.

  • Body: defining the body of the response.

  • Status: defining the HTTP code of the response.

The image below displays the screen with all data filled out.

mock
If there is a Log interceptor after the Mock interceptor, it is necessary to add the Content-Type header with the value text/* or application/json for a better view of the details. If the values cited are not informed, the data returned by the Mock interceptor will be encrypted and displayed in Base64.
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]