How to Create Collections in Postman
In this article, we will see how to create Collections in Postman. It is an Application Programming Interface (API) tool that streamlines the lifecycle of API development and testing in an efficient manner. It can be used to develop, design, document, and test APIs. Postman provides the ability to group together several API requests into a logical arrangement called Collections. This not only allows developers to save and reuse API requests but also to share among team members. This article provides a step-by-step guideline on how to create collections in Postman.
Click on the New Icon present in the postman application. This shows a range of options to select from such as creating HTTP requests, creating collections, setting up a workspace, etc.
Click on + button near Collection to create a new collection. Specify a suitable name for it.
The Collections tab on the left sidebar shows all the collections that have been created.
- An Authorization method can be specified for all the requests in the collection in the Authorization tab.
- Pre-request scripts can be added to run a script before executing each request.
- Tests can be included which executes after every request.
- Variables necessary for the collection can be specified in the Variables tab.
Click on Add a request to create a new request and add it to the collection.
This request can be configured by specifying a suitable name, request URL, Http method, or any other details required for sending it.
Click on the expand icon present left to each collection name to see the number and list of requests it contains.
Click on the menu icon present next to each collection to explore the range of functionalities provided by postman.
It is possible to share, edit, rename, run, export collections.
Please Login to comment...