14.2.1 Reviewing HTTP Methods for REST APIs

Review how HTTP methods map to REST operations on business entities.

The Hypertext Transfer Protocol (HTTP) defines methods that state a client's purpose in requesting a server URL. In RESTful web services, the four methods below map to the Create, Read, Update, and Delete (CRUD) operations on resources. Each resource is a business entity like an Action Item.

Table 14-1 HTTP Methods and REST Operations

Method Business Entity Operation
POST Create a new entity
GET Read an entity collection or a specific entity
PUT Update an existing entity with a new version
DELETE Delete an entity

Tip:

PATCH is a less frequently used method for performing a partial update to a business entity. Services supporting the PATCH "verb" interpret the client's JSON payload as an incremental change to apply to the existing object.