In the request body, set to “raw”, I inserted a dummy blog post in JSON format. In the above example, I made a POST request to, a “fake online REST API for testing and prototyping.” Just like when making a GET request with Postman, I added the route in the address bar, but instead of choosing GET in the dropdown box, I instead chose POST.
#THE GOOD POSTMAN DOWNLOAD CODE#
Then, I get the response data in easy-to-read JSON with a status code of 200, confirming the GET request was successful. All I have to do is plug the route into the address bar, select the GET response method on the dropdown box to its left, punch in my API key in the “Headers” section, specify that I want the response in “pretty” JSON format, and hit send. With Postman, such a test is much more streamlined. Granted, I would probably need to write all this out anyway to make a functioning app using this API, but doing all this to simply test an API's functionality is unnecessarily tedious and time consuming when something like Postman exists. If I wanted to test a GET request against this route without using Postman-instead actually writing out code in something like Flask-I would have to write out a whole new route and function to perform the request, then I would have to specify with more code what I want the response to look like, and finally I would have to print out the response to the console or provide some other way of actually viewing the response. Let’s say I wanted to make a GET request against a fan-made API for the video game Hearthstone to search for cards with “archer” in their name. It offers a sleek user interface with which to make HTML requests, without the hassle of writing a bunch of code just to test an API's functionality.
![the good postman download the good postman download](https://images-na.ssl-images-amazon.com/images/S/sgp-catalog-images/region_US/v40tb-WH02Q5CP6DF-Full-Image_GalleryBackground-en-US-1582733472525._SX1080_.jpg)
![the good postman download the good postman download](https://i2.wp.com/thepostmansknock.com/wp-content/uploads/2017/03/1cursive_worksheet-12-of-15featured.jpg)
![the good postman download the good postman download](https://www.imagesgoodnight.com/wp-content/uploads/2018/12/Post-Card-Good-Morning-Imag.jpg)
Postman is a great tool when trying to dissect RESTful APIs made by others or test ones you have made yourself.