课程: Java: Automated API Testing with REST Assured
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
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…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。
内容
-
-
-
-
Anatomy of a request1 分钟 47 秒
-
(已锁定)
Request methods1 分钟 47 秒
-
Making a GET request9 分钟 48 秒
-
(已锁定)
Making a POST request4 分钟 16 秒
-
(已锁定)
Making a PUT request3 分钟 7 秒
-
(已锁定)
Making a DELETE request1 分钟 52 秒
-
(已锁定)
Serializing request body7 分钟 26 秒
-
(已锁定)
Challenge: Use requests to complete the lifecycle of a resource42 秒
-
(已锁定)
Solution: Use requests to complete the lifecycle of a resource2 分钟 32 秒
-
-