Summary
This chapter has introduced you to the concept of using mock servers in Postman. You have seen how to set up a mock server in Postman. You have learned about making the server private or public. You have also learned a lot about how to set up data for your mock servers.
In this chapter, I’ve shown you how to create very simple mocks that respond with a static response every time they are called. I’ve shown you how to do more complex mocking where you can respond with more dynamic values. We also got into the details of how to respond with mock data that is a mix of dynamic and static data, and that has default responses if you don’t specify the full body of the request.
Mocks can be used for a variety of different purposes, and we explored some of the reasons you might use them and some things to be careful of when you work with them. We dove into some examples of using mocks for things like testing with third-party services, and we looked at how...