Protocols

REST

REST is an architectural style that models operations around resources and uniform interfaces.

PathActionGET/orders/42readPOST/orderscreatePUT/orders/42replaceDELETE/orders/42removeStandard methods act on resources.
REST is an architectural style that models operations around resources and uniform interfaces. Values shown in the worked visual are illustrative unless the labels state otherwise.

How it works

HTTP APIs often apply REST constraints through resource URLs, standard methods, and stateless requests. An API can use HTTP without being RESTful.

A concrete example

Illustrative: PUT /users/42 replaces user 42, while GET /users/42 reads it.

Do not confuse it with RPC

REST emphasizes resources; RPC emphasizes named procedures or methods.

Study the full lesson