Web apps & software

What is a REST API?

A REST API is a web API designed around resources, such as customers or bookings, each with its own URL, and standard HTTP methods: GET to read, POST to create, PUT or PATCH to update and DELETE to remove.

A simple example

GET /bookings?date=2026-11-03 returns the day's bookings as JSON; POST /bookings with booking details creates one; PATCH /bookings/123 changes its pickup time. Status codes such as 200, 404 and 422 tell the caller what happened.

REST versus GraphQL

REST is simple, cache-friendly and universally supported. GraphQL lets the client ask for exactly the fields it needs in one request, which helps complex front ends. Many systems offer REST for integrations and use GraphQL internally.

Questions, answered

Representational State Transfer, an architectural style described by Roy Fielding in 2000.

No, but JSON is by far the most common format.

By the Stegnor team · Updated