How to use POSTMAN Application

A quick introduction on how to use postman

REST APIs being the gold standard in the industry these days , every application uses REST APIs.

So how to do you test it? You can use the browser to call the API and use an extension like JSONViewer to see the returned JSON response. If the returned data is in XML, we need another extension. Quickly you’ll realize you need a complete set of tools to test REST APIs.

This is where postman comes in. Postman provides a comprehensive set of tools to do manual testing of REST APIs.

Download Postman App

Step 2: Once you download and install postman, you should end up with something as shown below

Postman starting screen

Postman starting screen

Step 3: Test a GET request.

To test GET APIs we will using sample APIs provided by POSTMAN. We can get the sample APIs here,

Postman Echo

We will use an GET request as below

GET Request example

GET Request example

Similarly you can replace the request with your REST API to test the same.

Step 4: Test a POST request

We will use a POST request as shown below

POST Request example

POST Request example

Similarly if you intend to test a PUT request , can change the type of request and test it as shown below ,

PUT request example

PUT request example

Bonus Step: How to send JSON/XML or file as input

You can set the JSON/XML body to send as request body shown below

Request body example

Request body example

The way to send file as a input in POSTMAN is as shown below

File upload example

File upload example

For more articles on development, check out development tag.