From the course: Designing RESTful APIs

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

REST APIs: Constraints

REST APIs: Constraints - REST Tutorial

From the course: Designing RESTful APIs

REST APIs: Constraints

- [Instructor] As I noted earlier, REST is not a formal specification or standard itself, but it often uses some standards and some principles or constraints. In this video, we'll talk about those specific constraints. The six constraints serve to establish the expectations and create some structure and patterns around the flexibility of REST These are not hard and fast rules, which should be considered guidelines and best practices for implementation. Like any best practices, you can choose not to follow them, but it may make your API harder to understand, use, and eventually adopt. The first constraint is that an API should be designed for a client-server architecture. This is the internet, so that shouldn't be too surprising. The single biggest benefit to the setup is that it allows us to vary the implementation details, upgrade paths, and scalability of each independently of the other. The second constraint, that's…

Contents