Architecture
As mentioned, REST is a resource-centric architectural style that makes use of URIs and HTTP verbs (for example, GET, PUT, POST, DELETE, and PATCH) in order to perform actions against a given (unique) resource. This is in contrast to RPC-based protocols, such as SOAP, gRPC, and even GraphQL, where the action is explicit in the payload of the message. For example, a HTTP GET request against a http(s)://<server>/customers URI implies listing all customers available in the /customers resource.
Doing a HTTP POST call against the same resource means creating a new customer record, details of which should be provided as part of the HTTP payload.
The following is a process view representation of REST extracted from Fielding's dissertation. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access