Principles of REST architecture
Up to this point, we have only mentioned the key principles of REST. Let us dive deeper to understand these principles in more detail.
Uniform interface
The uniform interface is the cornerstone of any REST design, promoting a standardized way of interacting with a given set of resources. This principle encompasses four key constraints:
- Identification of resources: Each resource, whether it is a document, image, or service, is identified using a unique uniform resource identifier (URI)
- Manipulation of resources via representations: When a client possesses a representation of a resource, along with any attached metadata, it can modify or delete the resource on the server if it has the necessary permissions
- Self-descriptive messages: Each message contains enough information to describe how to process it, which may include the representation format and the desired state transitions
- Hypermedia as the engine of application...