How to Import/Export collections in Postman
Last Updated :
20 Dec, 2023
Postman is a popular API testing and development tool offering a feature set for organizing and managing your API requests through collections. Collections are groups of requests that can be easily organized, shared, and executed. Importing and exporting collections in Postman is better for collaboration and efficient API development. In this article, we'll explore the various approaches to import/export collections in Postman, step by step.
Prerequisites:
Approaches:
1. How to Import/Export Collections Using the Postman Dashboard:
Step 1: Open Postman and navigate to the "Collections" tab.
Collection TabStep 2: Click on the "Import" button.
Click on Import ButtonStep 3: Choose the source type, "File"
Select files or folder hereStep 4: Now Select the your json file
Select your json fileStep 5: Now you can see the Imported file
Imported files2. How to Import Collections Using Code Repositories:
Step 1: In the "Collections" tab, click "Import."
Click on import buttonStep 2: Click on "Other source" and choose your code repository as you want.
Click on github repositoryStep 3: Now click on github logo.
Click on githubStep 4: Now Choose your repository details from where you want to import (Make sure Postman authenticated with your githhub account)
Choose your repositoryStep 5: Now you can see the Import Complete.
Import Complete3. How to Export Collections in Postman:
Step 1: Click on three dot button of your collection.
Gfg Sample APIStep 2: Scroll down and Select Export Option
Export Your FileStep 3: Choose "Collecion v2.1" and Click on "Export" button
Export Step 4: Choose the File location where you want to save this file. then Click "Save" to export the collection.
Save your collectionSteps to Create an Application:
Let's create a simple application example to understand the the import/export process. Assume we have a collection named "Test Country API" with requests using REST Countries API.
Step 1: Click on the "Collections" tab. and Click on the "New Collection" button.
Create CollectionStep 2: Select "Blank Collection" and Name it "Test Country API."
Create Blank CollectionStep 3: Click "Add a request" in order to add your first request.
Add a new requestStep 4: Add Requests to the Collection
Request 1: Get All Countries
Method:
GET
Endpoint:
https://restcountries.com/v3.1/all
ResultNow, you have a basic application in Postman that includes requests to interact with the REST Countries API.
Similar Reads
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 g
2 min read
How to import and export Postman collections for an Express API. Exporting and importing Postman collections for an Express API is a convenient way to share and document your API endpoints. Here's a step-by-step guide on how to do this: Table of Content Exporting Postman CollectionImporting Postman CollectionExporting Postman Collection:Step 1: Open Postman:Open
2 min read
How to Share Postman Collections? Postman is an API development tool that helps simplify the testing and validation of APIs during the development process. A Collection in Postman is a set of API requests grouped. While working on large projects developers need to work in groups then sharing the collections in Postman is a beneficia
4 min read
How to Import cURL Request into Postman ? Postman is an API development tool that helps us do everything related to APIs, make API calls, perform API testing, create automations, etc. This is a one-step tool to perform operations on the backend server, and show the outputs in various readable formats. In this article, we will learn how to i
2 min read
How to import Swagger APIs into Postman? Swagger is a powerful tool for designing, documenting, and testing APIs, while Postman is a popular API development platform. By importing Swagger APIs into Postman, developers can leverage the capabilities of both tools to streamline their workflow and enhance collaboration. In this article, we'll
4 min read