From the course: Java: Automated API Testing with REST Assured
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Request methods - Java Tutorial
From the course: Java: Automated API Testing with REST Assured
Request methods
- [Instructor] There are several types of API requests, which are determined by the method used to make the request. API request methods reflect typical CRUD actions, where CRUD stands for create, read, update, and delete. However, many of these actions have different names when referring to API request methods. Here are the most common request methods for APIs. POST, which is used to create a new object within the application. For example, if we want to create a new product listing within our demo application, we'd need to make that request via the POST method. GET is another request method, and it is used to obtain information about an existing object within the application. So if we needed details about an existing product such as its ID or its price, we would make that request via the GET method. Another request method is PUT, which is used to update an existing object within the application. So if we wanted to change…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Anatomy of a request1m 47s
-
Request methods1m 47s
-
Making a GET request9m 48s
-
Making a POST request4m 16s
-
Making a PUT request3m 7s
-
Making a DELETE request1m 52s
-
Serializing request body7m 26s
-
Challenge: Use requests to complete the lifecycle of a resource42s
-
Solution: Use requests to complete the lifecycle of a resource2m 32s
-
-