0% found this document useful (0 votes)
24 views1 page

How To Hit API in Postman

The document outlines steps for using Postman with the GoRest API, including how to open Postman, select methods, add URLs and headers, and send requests. It provides specific examples for GET, POST, and PUT requests to manage user data on the GoRest platform. Additionally, it includes instructions for obtaining an API token for authorization.

Uploaded by

sohel aaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views1 page

How To Hit API in Postman

The document outlines steps for using Postman with the GoRest API, including how to open Postman, select methods, add URLs and headers, and send requests. It provides specific examples for GET, POST, and PUT requests to manage user data on the GoRest platform. Additionally, it includes instructions for obtaining an API token for authorization.

Uploaded by

sohel aaga
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

NotesBy: Kapil sir

===========================================================================
Steps:
1.open the postman as well as gorest site
2.select the method
3.add the url/api
4.add the headers
a. authorization
b. content-type
5.Only in case of POST and PUT add the body not for the GET
6. click on send

get token from gorest site(login->in howdy-Api token)


ex:AUTHORIZATION- Bearer kdhfkgshfk745874697456740bhchjfvx4889

---------------------------------------------------------------------------
GET- to fetch data- https://gorest.co.in/public/v2/users
-----------------------------------------------------------------------------
1.POST-use this data to create

url-https://gorest.co.in/public/v2/users
ex:
{
"name": "madhuri",
"email": "[email protected]",
"gender": "Female",
"status": "Active"
}
---------------------------------------------------------------------------

-----------------------------------------------------------------------------
PUT-to update the data- https://gorest.co.in/public/v2/users/2046 (add existing id
eg.2046)
- then update any field(eg. change the mail id)
{
"name": "madhuri adamane",
"email": "[email protected]",
"gender": "Female",
"status": "Active"
}
-------------------------------------------------------------------------------

You might also like