Every Endpoint Is a Contract
Method, route, status, and body all communicate meaning together.
The route identifies the resource. The HTTP method expresses the action or intention. The status code tells the client how the request ended. The JSON body carries structured data or error information.
When those parts disagree, the API becomes harder to consume and debug.
- `GET` reads
- `POST` creates
- `PUT` or `PATCH` updates
- `DELETE` removes
- The payload shape should stay consistent across similar outcomes