Request in Postman With Example : Create ,Rename ,Delete

.

What is a Request in Postman?

Request In Postman With Example


Types of HTTP Requests in Postman

  • Get
  • Post
  • Put
  • Patch
  • Delete
Note: Apart from the above HTTP request, we have other request types.


URI (Uniform Resource Identifier)

https://reqres.in/api/users?page=2  //This URI

host/Domain:https://reqres.in

Path Parameter: api/users?

Query Parameter:page=2



How to create an HTTP request in Postman? (Inside Collection)

There are multiple ways to create the HTTP Request

To create a request in Postman, follow the steps below.

I am using a sample API to create the request. For more samples or dummy APIs, visit the website (https://reqres.in/).

Way 1

Steps: 1. Select the collection inside which you want to create a request.

Step 2: Click on the Add Request option as shown in the figure.




Step 3: As soon as you click on the add request button, an HTTP GET request will be created with the default name "New Request" Change the request name accordingly.



Way 2

Step 1: Select the Collection inside which you want to create the request.

Step 2: Now, click on the three Dots as shown in the figure.

Step 3: Click on the Add Request option.


Step 4: As soon as you click on the add Request option, by default, an HTTP request will be created. You can change the request type and request name accordingly.


Way 3

Step 1: Click on the New button.

Step 2: Now click on the HTTP Option as shown in the figure.


Step 3: Now send the request and click on the save button.


Step 4: Now 

  • Change the request name.
  • Select the collection where you want to save.
  • Click on the Save button.



How to delete HTTP requests in Postman?

To delete the request in Postman, just follow the steps below.

Step 1: First, select the request you want to delete.

Step 2: Now, click on the three dots as shown in the figure.

Step 3: Now, click on the delete button.


Step 4: Now, click on the delete button in the confirmation message.


As soon as you click on the delete button, the request will be deleted from the collection.


Hope!!! The above Tutorial on how to create a request in Postman is helpful for you...

Team,

QA acharya


Post a Comment

0 Comments