Using API specifications in Postman
You can use API specifications to simplify work in many areas. In this section, I will show you some things that you can do with them. You will learn how to create mocks and tests from a specification with only a few clicks.
I will also show you how to use them to do some validation so that everything in your request and elements are consistent.
If you have been following along, you should be able to import the file you just created, but if not, you can download the file from the GitHub repository for this course (https://github.com/PacktPublishing/API-Testing-and-Development-with-Postman-Second-Edition/tree/master/Chapter03). Using an OAS in Postman is as easy as importing it and following a few setup steps, as follows:
- In Postman, choose the Import button at the top left of the application.
- In the file browser, navigate to where you saved the
budgeting.yaml
specification file and click Open. - On the resulting dialog...