Richardson Maturity Model (RMM) ஒரு API எவ்வளவு "RESTful" என்பதை நான்கு நிலைகளில் தரப்படுத்துகிறது, மேலும் HATEOAS என்பது மேல் நிலை — பெரும்பாலானோர் தவிர்க்கும் constraint.
நான்கு நிலைகள்
Level 0 — "The Swamp of POX": one URI, one method (RPC over HTTP).
POST /api { "action": "getUser", "id": 42 }
Level 1 — Resources: many URIs, but still one verb.
POST /users/42 , POST /users/42/delete
Level 2 — HTTP Verbs: proper methods + status codes (where most "REST" APIs live).
GET /users/42 → 200 , DELETE /users/42 → 204
Level 3 — Hypermedia Controls (HATEOAS): responses link to what you can do next.
பெரும்பாலான production "REST" APIs -இல் உள்ளன — சரியான resources, methods, மற்றும் status codes. அது பொதுவாகப் போதுமானது, மேலும் அது முற்றிலும் நியாயமான ஒரு இலக்கு.
