REST architecture constraints
In Chapter 3, Architecture Principles and API Styles, we discussed different architecture styles and their use, depending on the use case's suitability. The REST architecture style, though widely adopted, has a few limitations that must be understood properly before you decide to use this style. These limitations merely stem from the guidance around building strictly RESTful APIs. But within an enterprise, it is quite likely that deviations may exist due to standards not being interpreted properly by the development teams. It's important to understand what makes a REST API truly RESTful, and why these constraints exist, before building your API.
In general, there are primarily six key constraints that apply while building RESTful APIs:
- Uniform interface: This is the key constraint that differentiates a REST API from other types of API implementations. It revolves around the idea that HTTPzzbased...