Create New Request in Postman



Create a New Request in Postman

 

  1. Click on “New” -> “Request” menu item
Create New Request in Postman
Create New Request in Postman

 

  1. Enter some meaningful name in “Request name” field.

Ex: GetWeather_Hyderabad

Enter Request Name in Postman

 

  1. Click on “+Create Collection” link
  2. Enter some meaningful collection name

Ex: Weather_Collection

  1. Click on “Save to Weather_Collection”

Enter Collection Name in Postman

  • Verify that “Weather_Collection” is displayed in left navigation
  • Expand “Weather_Collection” by clicking on “Arrow” icon before “Weather_Collection” name

Click on Collection Name

 

  1. Click on “GetWeather_Hyderabad” request name

Click on Collection Name in Postman

 

  1. Enter the request URL.

http://restapi.demoqa.com/utilities/weather/city/Hyderabad

 

In this example we are trying to get the weather details for city: Hyderabad. So select the “GET” method from the dropdown.

 

  1. Click on “Save” button to save the request.
  2. Click on “Send” button.

 

Sending Request in Postman

  1. Verify the following factors from API response.

 

  • Status should be “200 OK”
  • “City” value should be “Hyderabad”

 

{

“City”: “Hyderabad”,

“Temperature”: “20.38 Degree celsius”,

“Humidity”: “83 Percent”,

“WeatherDescription”: “mist”,

“WindSpeed”: “1.74 Km per hour”,

“WindDirectionDegree”: “108 Degree”

}

 

 

 

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