From the course: Building RESTful APIs in Laravel

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Testing APIs with Postman

Solution: Testing APIs with Postman

From the course: Building RESTful APIs in Laravel

Start my 1-month free trial

Solution: Testing APIs with Postman

(upbeat music) - [Instructor] Welcome to the solutions video of the last challenge of this course. In the last video, I asked you to create a resource in Postman and test that you can view, update and delete it. Let's get started. I'm going to create a new request by clicking on the new button. I'll call the test and use the create collection link to create a new collection called Challenge. You may at first create a collection and then the request. Either way is fine. Next, I'm going to send a post request to the petitions API which we saved in the variable petitions. I would go to the board at top select row and then JSON. Inside curly braces, I'll a JSON object with a title, description, category, author, and signees keys and values. The title is My New Petition, the description is my new petition description, the category is nature, the author is Susanna, and the signees is 100. Next, I'll send the request…

Contents