← API Testing with Postman learning path
API Testing with Postman · Module 7 of 10

Mock servers and documentation

Mock APIs and publish documentation.

📖 Key ideas

  1. Mock servers return example responses before the backend exists.
  2. Front-end and back-end teams can work in parallel.
  3. Postman generates API documentation from collections.
  4. Add descriptions and examples to requests.
  5. Import/export OpenAPI specifications.
💡 Real-life example: A mock server is a film set shop front: looks real enough to rehearse before the actual shop opens.
Mock serverFake API returning examples
ExampleSaved sample response
API documentationGuide to using endpoints
OpenAPIStandard API description format