It can be for a single request, it can be for all of them. Your needs will determine where you are going to write your tests. When you run the request inside of your collection, at the Test Result tab, you can see the test that was created to all collection and the test created for this specific request. To use this variables inside of your request, they are written between double curly brackets:Įnter fullscreen mode Exit fullscreen mode token - we will use to store our token that will be used in the collection.baseUrl - for the base URL of our requests.With them is possible to reuse in different requests, and if is needed to change, you will only change in the variables of the collection. This is an good practice to help you reduce time when creating new requests.Īt this tab, we can start to implement variables. If you go to your requests, at Authorization tab, you can select the option "Inherit from parent", this way, all your requests will use the same authentication: You can use the same Authorization for all your requests inside of your collection, when you select one type, for example: When you click on "View complete documentation",will list the request details as a document: This is an easy way to document your APIs. The Overview page contains the requests of a collection, displaying details like: This API allows you create, edit, search and delete books, you can learn more about it here. When you create a collection, this is the page that you'll see:įor this tutorial, we will use the API free Books. So, a collection basically is a folder, that you can group your requests to keep your workspace organized. With collections, you can link related API elements together for easy editing, sharing, testing, and reuse. Postman Collections are the gold standard for API organization. If you look at Postman documentation, they will say that a collection is: It has become a standard tool in API development and testing workflows due to its user-friendly interface and extensive feature set.įirst, we need to understand what is an collection. There's also a web version, and a free tier with limited features is available, as well as paid plans with more advanced capabilities for teams and enterprises. Postman is available for Windows, macOS, and Linux. Postman is commonly used throughout the various stages of software development to simplify the process of working with APIs during the development and testing phases of software projects. It provides a user-friendly interface for making HTTP requests to APIs and inspecting the responses. Postman is a popular API (Application Programming Interface) development and testing tool.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |