Posts

Collection In Postman


In this tutorial, we will discuss the Collections in the Postman.

Table of Contents

What is the Postman Collection?

A Postman Collection is a group of HTTP requests that are bundled together for easier management, sharing, testing, and automation. Postman is a popular API client that allows developers to create and manage API requests in a user-friendly interface. 

A Postman Collection typically includes:

  1. Requests: Each request in a collection represents a specific API call. This could be a GET request to retrieve data, a POST request to create new data, a PUT request to update data, or a DELETE request to remove data.
  2. Request Parameters: These are the parameters that are sent with each request, such as query parameters, headers, request body (for POST and PUT requests), authentication information, etc.
  3. Tests: Postman allows you to write tests in JavaScript that are executed after a request is sent. These tests can verify that the API response meets certain criteria, such as checking for specific data in the response, verifying status codes, or ensuring the response time is within acceptable limits.
  4. Variables: Collections can also include variables, which allow you to store and reuse values across requests. This is particularly useful for managing authentication tokens, dynamic data, or environment-specific values.
  5. Documentation: Collections can be documented within Postman, providing a clear reference for how to use the API endpoints included in the collection.

Postman Collections can be exported and shared, making them valuable for collaboration among developers, testers, and other stakeholders working with APIs. They can also be used for automated testing and continuous integration/continuous deployment (CI/CD) pipelines, where API calls need to be made as part of an automated process.

How to Create a Collection?

Step 1: Click on Collections
Step 2: Click on the “+” plus icon.

Step 3: Select the Blank Collection
 
Step 4:  Provide a name to the collection – “EbrahimHossain”.

How to delete a Collection?

Step 1: Select the more actions icon More actions icon next to the collection name.
Step 2: Select the Delete Button
Step 3: Confirm the Delete



Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.