GET request in Postman



GET request is used to get the information from the server and does not have any side-effects on the server side. There is no updation/deletion/insertion of data on the server when you are making a GET request, you just request from the server and the server responds to the request.

GET request has all its information inside the URL, and since URL is visible all the time, it is advisable not to use GET request while you send some sensitive information such as passwords, creditcard numbers or SSN’s.

Sending Request

  1. Select “GET” request from the request type’s dropdown.
  2. Enter URL of the API.
  3. In our example we are using the following request which gets the weather details for “Hyderabad” city.
  4. http://restapi.demoqa.com/utilities/weather/city/Hyderabad
  5. Click on “Send” button.

GET request in Postman

Verify the response.

  1. Status code should be “200 OK”, that means the request is success without any errors.
  2. “Response Time” will be displayed in “milli seconds” after the “Status”.
  3. “Size of the response” (in Bytes) will be displayed next to “Time”.
  4. API response will be displayed under “Body” section.

Response in Postman

 

 

 

Tags:
Leave a comment

Your email address will not be published. Required fields are marked *

Subscribe now

Receive weekly newsletter with educational materials, new courses, most popular posts, popular books and much more!

https://bridgejunks.com/ https://crownmakesense.com/ https://brithaniabookjudges.com/ https://hughesroyality.com/ https://rhythmholic.com/ https://bandar89.simnasfikpunhas.com/ https://www.100calshop.co.il/products/thailand/ https://myasociados.com/ https://solyser.com/ http://konfidence.cz/ https://muscadinepdx.com/ https://bandar89.parajesandinos.com.ve/ https://goremekoop.com/ https://oncoswisscenter.com/ https://www.turunclifehotel.com/bandar89/ https://www.houseofproducts.biz/ https://taimoormphotography.com/
BIJI18 BIJI18 BIJI18