课程: Java: Automated API Testing with REST Assured

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Request methods

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…

内容