Running Postman collections
Throughout the book, you have learned how to use the Postman REST client to test out the API endpoints. In addition to sending API requests, Postman can be used to build test suites by defining a group of API requests within a collection.
To set this up, proceed as follows:
- Open the Postman client and click on the New button from the header bar, then select Collection, as illustrated in the following screenshot:
- A new window will pop up— name your collection
Recipes API
and click on the Create button to save the collection. Then, click on Add request to create a new API request and call itList Recipes
, as illustrated in the following screenshot: - Click on the Save button—a new tab will open with your given request name. Enter
http://localhost:8080/recipes
in the address bar and select aGET
method.
All right—now, once that is done,...