URL Structure
- Use nouns, not verbs:
/usersnot/getUsers - Plural resources:
/usersnot/user - Nested for relationships:
/users/123/orders - Use hyphens, not underscores:
/order-items
HTTP Methods
| Method | Use | Idempotent? |
|---|---|---|
| GET | Read data | Yes |
| POST | Create new | No |
| PUT | Replace | Yes |
| PATCH | Partial update | Yes |
| DELETE | Remove | Yes |
Error Responses
Always return structured errors with a human-readable message and machine-readable code. Include a request ID for debugging. Our JSON Formatter helps you design clean response structures.