Introduction

Postman is open source, free to install in your system and is used to test APIs. Using Postman, you can test any type of Services, controller, or web application after setting your configuration.

How to use postman?


According to the image, you need to follow the given points.

How do we create collection in Postman?

Using Postman, you can categorize requests with all details (parameter, access token, endpoint, etc...) in the folder. Collection can be imported in Postman for next time. Follow the simple 2-3 steps to create collection.

Step 1

Once the entire configuration for Postman is set, press ctrl+S to get the new window open. In new window, we need to set these things as given below.

After clicking on ‘Save button, you can see in the left panel the endpoint is listed. We can save multiple endpoints in a single folder with request details.

If we have already created folder and we want to add new endpoint, just follow the above steps and select “save an existing collection” picklist, and we can see all existing folders and select any.

Step 2

To export and save collection on local drive, please refer to the below screenshot.


Click on “Export”. A new popup will be opened as per the below screenshot.


User can choose the option and click on “Export” button. After that, select path in your local drive and save. You can see collection has been saved on your local drive in the .json file.

How do we import collection?

If we want to import collection in Postman from local drive, just follow these steps.

Open Postman=>Click on “Import” button. Please refer to the below screenshot.


After clicking on "Import" button, a new popup will be opened to select source type. Please refer to the below screenshot.


Select “import file” tab and click on “Choose file” from local drive.Thereafter, you can see the collection in left panel with complete details.

How do we import endpoint list from swagger?

In this part, we will go through an example and steps to import endpoints list from swagger with details.

As we know swagger contains endpoints list in json format. For example you can verify the URL “***********************”.


After importing from swagger, all endpoints are available in postman with remarks, endpoints, method( GET,POST….), and header value except payload

Now, you need to set payload inside Body tab=>raw, because Microsoft doesn’t allow importing payload from swagger.

Other referenced link.