Monday, July 8, 2019

Rest table

HTTP methods
URICollection resource, such as https://api.example.com/collection/Member resource, such as https://api.example.com/collection/item3
GETRetrieve the URIs of the member resources of the collection resource in the response body.Retrieve representation of the member resource in the response body.
POSTCreate a member resource in the collection resource using the instructions in the request body. The URI of the created member resource is automatically assigned and returned in the response Location header field.Create a member resource in the member resource using the instructions in the request body. The URI of the created member resource is automatically assigned and returned in the response Location header field.
PUTReplace all the representations of the member resources of the collection resource with the representation in the request body, or create the collection resource if it does not exist.Replace all the representations of the member resource or create the member resource if it does not exist, with the representation in the request body.
PATCHUpdate all the representations of the member resources of the collection resource using the instructions in the request body, or may create the collection resource if it does not exist.Update all the representations of the member resource, or may create the member resource if it does not exist, using the instructions in the request body.
DELETEDelete all the representations of the member resources of the collection resource.Delete all the representations of the member resource.