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.
Step 1 : Download POSTMAN application from below link
Step 2: Once you download and install postman, you should end up with something as shown below
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,
We will use an GET request as below
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
Similarly if you intend to test a PUT request , can change the type of request and test it as shown below ,
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
The way to send file as a input in POSTMAN is as shown below
For more articles on development, check out development tag.