Representational State Transfer (REST) is an architectural style designed by Roy Fielding in 2000 for distributed hypermedia systems. REST governs how modern web services communicate over HTTP, enabling clients (web SPAs, mobile apps, IoT devices) and backend servers to interact reliably, securely, and scalably.
To be considered a true RESTful system, an API architecture must satisfy six constraints:
Statelessness mandates that no client session context is stored on the server between requests. Every single incoming request must contain all the information necessary for the server to understand, authenticate, and process it.
In REST, everything is a Resource. Resources are identified by stable, noun-based URIs (never verbs or actions):
| Bad URI (RPC / Action-based) | Good RESTful URI (Resource-based) | HTTP Method |
|---|---|---|
/api/getInvoices | /api/v1/invoices/ | GET |
/api/createInvoice | /api/v1/invoices/ | POST |
/api/updateInvoice?id=4 | /api/v1/invoices/4/ | PUT or PATCH |
/api/deleteInvoice/4 | /api/v1/invoices/4/ | DELETE |
The Richardson Maturity Model breaks down the progression towards true REST:
/orders/123), but uses single HTTP methods.GET, POST, PUT, DELETE) with meaningful HTTP status codes (200, 201, 404). Most production APIs operate here.Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
| Previous Lesson | Next Lesson |
|---|---|
| None | HTTP Methods Overview |
Test your understanding of this lesson with 5 questions. Each question has one correct answer.
Practice in live mentor-led sessions with real projects, mock tests, and verifiable certification at MSK Institute.