Always use post for create operations.
Options, the options method represents a request for information about the communication options available on the request/response chain identified by the Request-URI.
The methods GET, head, PUT and delete share this property.The client cannot be guaranteed that the operation has been carried out, even if the status code returned from the origin server indicates that the action has been completed successfully.However, PUT is idempotent, while post is not.If a resource has been created on the origin server, the response should be 201 (Created) and contain an entity which describes the status of the request and refers to the new resource, and a Location header (see section.30 ).Follow the similar URI design practices for other resources as well.Modify the address with an ID of 1: PUT /addresses/1, note: PUT replaces an existing entity.Delete an address with an ID of 1: delete /addresses/1, hTTP status codes, status codes indicate the result of the http request.A 200 response should include any header fields that indicate optional features implemented by the server and applicable to that resource (e.g., Allow possibly including extensions not defined by this specification.Patch /addresses/1, delete, request that a resource be removed; however, the resource does not have to be removed immediately.A single resource MAY be identified by many different URIs.If the Request-URI refers to an already existing resource, the enclosed entity should be considered as a modified version of the one residing on the origin server.
9.4, hEAD, the head method is identical to GET except that the server must NOT return a message-body in the response.
If the resource could not be created or modified with the Request-URI, an appropriate error response should be given that reflects the nature of the problem.
9.8 trace escort zona malvinas argentinas The trace method is used to invoke a remote, application-layer loop- back of the request message.
GET /device-management/devices/id : Get the device information identified by "id".
PUT method is idempotent.When a proxy receives an options request on an absoluteURI for which request forwarding is permitted, the proxy must check for a Max-Forwards field.However, the 303 (See Other) response can be used to direct the user agent to retrieve a cacheable resource.If only a subset of data elements are provided, the rest will be replaced with empty or null.If the options request includes an entity-body (as indicated by the presence of Content-Length or Transfer-Encoding then the media type must be indicated by a Content-Type field.Lets list down few URIs and their purpose to get better understanding when to use post and when to use PUT operations.The final recipient of the request should reflect the message received back to the client as the entity-body of a 200 (OK) response.If no response body is included, the response must include a Content-Length field with a field-value of "0".
State dependencies limit and restrict scalability.
The actual function performed by the post method is determined by the server and is usually dependent on the Request-URI.