Data access concepts in Force.com translate naturally into the REST style of API. SObjects and rows within them become URLs, and HTTP actions express DML operations:
GET for read-only requests for basic information,
POST to create records,
PATCH to update records, and
DELETE to delete them. Because not all HTTP clients support the full range of methods, Force.com also allows a special URL parameter (
_HttpMethod) to specify the action. By default, REST API calls return JSON-encoded responses, but you can override this by appending
.xml to the end of URLs, or by sending the standard HTTP
Accept header with the desired content type.
Almost every REST API call requires authentication to Force.com. This is done ...