HTTP Methods
The following HTTP methods are used to implement different actions, as described below.
|
HTTP Method |
Description |
|---|---|
|
POST |
The first method is used to create a new resource. The POST request is submitted to the resource collection in which the new resource is to belong. Submitting a POST request to a resource representing a collection is equivalent to submitting the same request to the Members property of that resource. The last method is used to initiate operations on the object (such as Actions). Services shall support the POST method for sending actions. The POST operation may not be idempotent. |
|
GET |
The GET method is used to retrieve a representation of a resource. That representation can either be a single resource or a collection. |
|
PUT |
The PUT method is used to completely replace a resource. Properties omitted from the request body are reset to their default value. |
|
PATCH |
The PATCH method is the preferred method used to perform updates on pre-existing resources. Changes to the resource are sent in the request body. Properties not specified in the request body are not directly changed by the PATCH request. The response is either empty or a representation of the resource after the update was done. The implementation may reject the update operation on certain fields based on its own policies and, if so, shall not apply any of the update requested. |
|
DELETE |
The DELETE method is used to remove a resource. Services shall support the DELETE method for resources that can be deleted. |
Feedback