Create a Mock Server from a Collection
A 3-step recipe with Postman. We can help you get access.
Recipe · 3 steps
Create a Mock Server from a Collection
with Postman
Create a collection and a mock server backed by it.
- Create the collection whose example responses the mock server will serve.
- Create a mock server backed by the new collection, kept private by default.
- Read the mock server back to confirm its configuration and capture the mock URL.
What you'll need to have ready
- collectionName: The name of the collection to create and mock.
- mockName: The name of the mock server.
- workspace: Optional workspace ID to create the collection and mock in.
For your developer
Arazzo workflow postman:create-mock-from-collection, 3 operations: createCollection → createMock → getMock. Specs on APIs.io.