From the course: Postman Essential Training
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Creating negative requests: Part 2 - Postman Tutorial
From the course: Postman Essential Training
Creating negative requests: Part 2
- [Instructor] In the previous movie, we started learning about negative requests. We learned how to create a request with a missing authentication token and how to create a request for a record that is not found. Now we'll learn three more types of negative requests. A request is sent with missing required information, a value is sent with too many characters, and a value is sent that is not in the correct format. First, we'll create a post request that is missing a required field. In our contact list API, both the first name and the last name are required fields. So we want to make sure that when we do a post that's missing one of those fields, we get an appropriate error response. So let's open up our contact list collection and our two folders. We are going to duplicate the add contact request. So click on that. Click on the three dots, choose duplicate. Let's take that add contact, copy and we will drag it into the…
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)
-
-
-
-