Skip to content

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

// in practice

GET /orders/123 returns one order, PATCH /orders/123 updates its status, and a 404 means the order does not exist.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts