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

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