From the course: Learning REST APIs

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The six constraints of REST

The six constraints of REST

From the course: Learning REST APIs

Start my 1-month free trial

The six constraints of REST

- [Instructor] Representational state transfer, or REST, refers to a group of software architecture design constraints that bring about efficient, reliable, and scalable systems. There are six of these constraints and to understand REST, we need to know what they are and why they are there. So let's break them down. Constraint number one, client-server architecture. This constraint ensures proper separation of concerns. The client manages user interface concerns, while the server manages data storage concerns. In return, we get a highly portable system where one REST service can serve many different clients and interfaces without knowing or caring what those interfaces look like or what they are doing. In short, we have a complete separation between the content and its presentation and interaction. Constraint number two, statelessness. No client context or information, AKA state, can be stored on the server between…

Contents