From the course: Postman Essential Training
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Creating POST requests - Postman Tutorial
From the course: Postman Essential Training
Creating POST requests
- [Instructor] In the previous movie we saw how to retrieve contacts we created from the contact list API, but we created those contacts by using the UI. Now we'll learn how to do a post to our API to create contacts that way. Let's open up our contact list collection and then our basic endpoint tests folder. We are going to create our post request by duplicating our get contact list request. So click on the three dots next to the get contact list request, then choose duplicate and you can see now we have made a copy. Let's rename by clicking on the three dots and choosing rename, and we will rename the request add contact, and click return. Now we need to change the HTTP verb from get to post because when you are adding a new contact to the database it needs to be a post request. The URL of the request is going to be the same as the URL for the get contact list. So we don't need to make any changes there. However…
Contents
-
-
-
(Locked)
Creating collections and folders2m 4s
-
(Locked)
The contact list application2m 12s
-
(Locked)
How JSON Web Tokens (JWTs) work3m 34s
-
(Locked)
Creating GET requests5m 24s
-
(Locked)
Creating POST requests4m 4s
-
(Locked)
Creating PUT and DELETE requests4m 31s
-
(Locked)
Creating negative requests: Part 14m 25s
-
(Locked)
Creating negative requests: Part 26m 16s
-
(Locked)
Using environment variables3m 54s
-
(Locked)
Saving response data as a variable6m 37s
-
(Locked)
Challenge: Add variables to a request1m 6s
-
(Locked)
Solution: Add variables to a request2m 17s
-
(Locked)
-
-
-
-