Client-server separation and stateless communication
REST separates client responsibilities from server responsibilities. A browser, mobile application or partner system can request a resource representation without needing to understand how the server stores or calculates that resource. This separation allows the user interface and backend implementation to change independently, provided their agreed interface continues to behave as expected. Stateless communication is another central constraint. Each request should contain the information necessary for the server to interpret it. The server should not depend on an undocumented sequence of earlier requests held in conversational session state.
Statelessness does not mean that an application cannot use databases, store reservations or maintain authentication records. It means individual requests should be understandable without relying on hidden client-session context. For example, a reservation retrieval request should identify the requested reservation and carry appropriate authentication information. Its correctness should not depend on which search page the user visited immediately beforehand.


