An HTTP method specifies the action a client requests for a resource. It appears in the request start line alongside the URI and HTTP version. HTTP verbs is a common exam term, although method is more accurate because not every method is a verb. section 23.2.1 section 23.4
Common method-to-CRUD mappings are:
- POST generally creates a new resource. section 23.2.1
- GET retrieves a resource or reads its contents. section 23.2.1
- PUT replaces the specified resource, while PATCH modifies it. section 23.2.1
- DELETE removes the specified resource. section 23.2.1
Resource operations
For a variable named ip_address, POST can create the value 10.1.1.1, GET can retrieve it, PUT or PATCH can change it to 10.2.3.4, and DELETE can remove it. These actions correspond to CRUD: Create, Read, Update, and Delete. section 23.2.1
Figure 23.2 An API call in the form of an HTTP request receives a response in the form of an HTTP response. The HTTP request includes an HTTP method and a URI, and the response includes a response code and the relevant data.
Use the request–response diagram to connect the method and URI in a request with the response code and returned data. section 23.2









