📡 You're offline — showing cached content
New version available!
Quick Access
Tutorials API Design REST Principles

REST Principles

5 min read Quiz at the end
REST constrains APIs to stateless client-server communication with uniform resource-based URLs.

REST API Principles

REST (Representational State Transfer) defines six constraints: stateless, client-server, cacheable, uniform interface, layered system, and code on demand.

GET    /articles           # list all
GET    /articles/42        # get one
POST   /articles           # create
PUT    /articles/42        # replace
PATCH  /articles/42        # partial update
DELETE /articles/42        # delete
GET    /articles/42/comments  # nested
Topic Quiz · 1 questions

Test your understanding before moving on

1. Which REST constraint requires that each request contains all information the server needs?
💡 The Stateless constraint means the server stores no client session state — every request is self-contained.