- Leverage HTTP methods for CRUD operations
|Http Method|CRUD Operation|
| —— | —— |
|POST|Create a new entity|
|GET|Read a list of entities or single entity|
|PUT|Update an existing entity|
|DELETE|Delete an existing entity|
HTTP Messages
Client seds HTTP Request Message to Server then Server sends HTTP Response Message to Client.
HTTP Request Message
- Request line: the HTTP command
- get method / post method
- Header variables: request metadata
- basic information of request
- Message body: contents of message
HTTP Response Message
- Request line: server protocol and status code
- 200/404/500
- Header variables: response metadata
- content type of data(xml/JSON/…)
- Message body: contents of message