swipe >>
codewithgauri
INTRODUCTION :
Postman is an API(application programming
interface) development tool that helps to build, test,
and modify APIs. Almost any functionality that any
developer could need is encapsulated in this tool. It is
used by over 5 million developers every month to
make their API development easy and simple.
The Postman testing tool is a complete API
development platform with various built-in tools that
support every stage of the API lifecycle.
Explaining the Interface :
The longest middle input field that looks something like a
search bar is where the URL that we want to GET or POST or
DELETE,etc. is fed.
Just to the left of it, is a drop down button which has all the
various HTTP methods as options. If you want to POST to the
URL that you have specified, select POST.
To the right of it is the params button. If you click on it, a new
interface will appear. Params are basically the data that we
want to send to the server with our request. We will use this
params interface to POST to put app a new User.
To the left of this button is the Send button which is used in
sending the request to the server or the app in this case.
Why Postman?
1. Test Suites - Create them with ease
In order to ensure that your API is working as expected, the
Postman tool allows you to create collections of integration
tests. For each of these tests, that are run in a specific order,
an HTTP request is made and the assertions written in
JavaScript are used to verify the integrity of the code. You also
have the freedom to manipulate the data that you receive
with the Postman application, courtesy of the assertions
written in JavaScript
.
2. Testing in different environments? No
Problem!
Postman testing tool allows you to store certain information
about the different environments that you use and
automatically insert the correct environment configuration
for the test collection that you are running.
3. Data Storage
You may have an API that requires some specific data
received from another API. Postman tool allows you to store
such data from previous tests into global variables, and these
can be used in a similar way as environment variables. You
can either store the response or a part of the response and
use it for the subsequent API calls.
.
4. Better Integration
The Postman testing tool has a unique interface that allows
you to easily run a collection of tests right from the
command line.
Create, Read, Update, and Delete (CRUD) are the
four basic functions-
GET-The GET Method. GET is used to request data from a
specified resource. GET is one of the most common HTTP
methods.
POST- POST is used to send data to a server to create/update a
resource,
The data sent to the server with POST is stored in the request
body of the HTTP request:
PUT is used to send data to a server to create/update a
resource.
The difference between POST and PUT is that PUT requests
are idempotent.
PATCH- PATCH is somewhat analogous to the “update” concept
found in CRUD (in general, HTTP is different than CRUD, and
the two should not be confused)
DELETE- The DELETE method deletes the specified resource
And for amazing stuff you can follow me
Gaurav Pandey
LinkedIn :Gaurav Pandey
Twitter : @gauravcode
References:
https://www.specbee.com/blogs/postman-tool-simplifying-and-reshaping-api-
testing#:~:text=The%20Postman%20testing%20tool%20is,APIs%20%2D%20everything%20from%20one%20place.
https://www.geeksforgeeks.org/introduction-postman-api-development/