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 spec 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/tree/master/Chapter03 Using an OAS in Postman is as easy as importing it and doing a few setup steps.
- In Postman, choose the Import button at the top left of the application.
- Click on the Choose Files button, navigate to where you saved the specification file and click Open.
- Expand the Show Import Settings section.
- For the Request parameter generation and Response parameter...