Intro to Mock Servers
How Mock Server Works
When you send the request then MockServer receives that request, it matches the request against the specified requirement, and if no matches are found, it will proxy the request, if possible. The request would otherwise return a 404.
For each Received Request:
Here the expectation is the action being taken, which could be returned to a response.
Types of Mock Servers
We can create two types of Mock Servers in Postman:
1. Private mock server
These cannot be accessed by everyone. When you create a private mock server, users may share the collections with their teammates lying under it. Your team may use the mock by adding API keys in the request header x-api-key, like x-api-key:<your postman API key>.
2. Public mock server
Public mock servers are open to all. When you share this mock server, users are not required to add a Postman API key to consume the mock.
Benefits of Postman Mock server