REST API Design Checklist
Use this runbook when designing a new REST API or auditing an existing one.
1. URL Structure
2. HTTP Methods
| Method |
Purpose |
Idempotent |
Body |
| GET |
Read |
Yes |
No |
| POST |
Create |
No |
Yes |
| PUT |
Full replace |
Yes |
Yes |
| PATCH |
Partial update |
Yes |
Yes |
| DELETE |
Remove |
Yes |
No |
3. Versioning
{
"data": [...],
"pagination": {
"cursor": "eyJpZCI6MTAwfQ==",
"has_more": true,
"total": 1234
}
}
5. Filtering and Sorting
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Email is required",
"details": [
{ "field": "email", "message": "must not be empty" }
]
}
}
7. Authentication
8. Rate Limiting
9. Response Standards