Glossary · BackendAlso: RESTful API
What is a REST API?
A REST API is an API organised around resources, each with its own URL, that clients read and change with standard HTTP methods such as GET, POST, PUT, PATCH and DELETE. Responses use HTTP status codes, and each request carries everything the server needs, so servers do not keep client session state between calls.
Source: MDN: HTTP request methods
Why it matters
REST is the default style for public and partner APIs because it builds on how the web already works: URLs, methods, status codes and HTTP caching.
Its weak spot is over- and under-fetching: one screen may need several calls, or a call may return far more than the screen uses. That is when teams consider GraphQL.
Example
GET /orders/123 returns one order, PATCH /orders/123 updates its status, and a 404 means the order does not exist.