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

Request methods - Java Tutorial

From the course: Java: Automated API Testing with REST Assured

Start my 1-month free trial

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…

Contents