Summary
API specifications give you a lot of power in your testing. You can use them to keep documentation, tests, and even underlying code all in sync with each other. In this chapter, you learned how to use them to reduce the work in generating mocks and collections in Postman. You can also import API specifications that others may have made and use those in Postman. You have learned how to leverage an API specification to help you quickly create tests and mocks in Postman. Taken as a whole, you have gained a lot of useful skills for using an API specification to help with testing and designing high-quality APIs.
Creating and maintaining API specifications can be a bit of work, but they help with many aspects of API building. You are now able to create and use OpenAPI specifications in Postman!
The ability to use API specifications will let you create APIs that are characterized by consistency. This is an important factor in API design and quality, but we also want to be...