CORE/learn/rest-constraints
NETWORK_SYNC_ACTIVE
BACK_TO_MAP
DOMAIN::restREST Design Mastery
REST Constraints
"The six guiding principles of REST."
Real_World_Analogy
The rules of a sport that ensure every game follows the same structure.
Constraints_&_Tradeoffs
- Statelessness moves session state into every request, which makes each request bigger.
- A uniform interface trades per-endpoint tailoring for cacheability and predictability.
- Layered intermediaries can only help if they can act on the message alone.
INTERACTIVE_TRACE
TRACE::RESOURCE_VERB_SEMANTICS
METHOD::RESOURCE_VERB_SEMANTICSrest-constraints
METHODSAFEIDEMPOTENTCACHEABLE
ACT_ON
/orders/orders/<order-id>
the verb says what happens to the resource, never how the server implements it
SELECTED::GET01/05
retrieves a representation; repeating it changes nothing, so it may be retried and cached freely
RETRY_POLICY
a timeout may be retried: repeating it cannot change the end state
SAFETYread-only — a crawler or prefetcher may call it
idempotency is a property of the method, not of the handler that receives it
Illustrative_Specimen
GET /orders/<order-id> reads, changes nothing PUT /orders/<order-id> same request repeated → same end state DELETE /orders/<order-id> repeated → still gone
Placeholders in <angle-brackets>. Illustrative message shapes, not a description of any specific API.