POSTMAN LEARNING SERIES
What are Examples in Postman?
Detailed usage of Examples in Postman
An example is a tightly coupled request and response pair.
For every endpoint there are possible response codes and the response body. Same request will behave different at different times. When you are building a collection for public/team purpose we should to ensure to provide the as much as details possible inside the Postman Collection.
These examples will provide a basic understanding that this endpoint/request will receive the following response/response codes.
When to use Examples?
- When the system is unstable
- To provide better clarity for the team
- To create Mock Servers
- To have better API documentation
How to add Examples?
You can add examples in two ways:
- Directly saving the response from the server as example
- Creating a custom example manually
Method 1: Creating an example from server response
Once you hit “Send” and receive any response back with specific response code, you can click the three dots next…