REST-RESOURCE
L'unité de granularité REST — une URL, une entité.
Définition
Pratique : chaque resource a (1) une URL canonique au pluriel, (2) un schema (JSON-Schema/OpenAPI), (3) les méthodes HTTP standard (GET list, POST create, GET/PUT/PATCH/DELETE par ID). Sub-resources : /orders/{id}/lines. Filtres : /orders?status=open. Pagination : Link header (RFC 5988).
Origine
Concept central de la thèse Fielding 2000 (REST chapter).
Exemple en contexte
GET /orders → list, POST /orders → create, GET /orders/42 → fetch, PATCH /orders/42 → update.
Termes liés
- REST EDI — paradigme parent.