Help us improve
Share bugs, ideas, or general feedback.
From scaffolding
RESTful API design standards: resource naming, HTTP methods, status codes, pagination, versioning. TRIGGER when: designing new API endpoints, defining error response shapes, or adding pagination/filtering. SKIP: implementing FastAPI route code (use python-patterns); error-handling internals (use error-handling).
npx claudepluginhub komluk/scaffolding --plugin scaffoldingHow this skill is triggered — by the user, by Claude, or both
Slash command
/scaffolding:api-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standards and best practices for designing RESTful APIs.
Guides technical evaluation of code review feedback: read fully, restate for understanding, verify against codebase, respond with reasoning or pushback before implementing.
Share bugs, ideas, or general feedback.
Standards and best practices for designing RESTful APIs.
/users not /getUsers/users not /user/user-profiles not /userProfiles/users/{id}/posts| Pattern | Example | Use Case |
|---|---|---|
| Collection | /users | List resources |
| Item | /users/{id} | Single resource |
| Nested | /users/{id}/posts | Related resources |
| Action | /users/{id}/activate | Non-CRUD operations |
| Method | Purpose | Idempotent | Safe | Has Body |
|---|---|---|---|---|
| GET | Read | Yes | Yes | No |
| POST | Create | No | No | Yes |
| PUT | Replace entire resource | Yes | No | Yes |
| PATCH | Partial update | No | No | Yes |
| DELETE | Remove | Yes | No | No |
| Code | Use Case |
|---|---|
| 200 OK | GET, PUT, PATCH success |
| 201 Created | POST success (+ Location header) |
| 204 No Content | DELETE success |
| Code | Use Case |
|---|---|
| 400 Bad Request | Malformed request, validation error |
| 401 Unauthorized | Authentication required |
| 403 Forbidden | Authenticated but no permission |
| 404 Not Found | Resource doesn't exist |
| 409 Conflict | Resource state conflict |
| 422 Unprocessable Entity | Semantic validation error |
| 429 Too Many Requests | Rate limit exceeded |
| Code | Use Case |
|---|---|
| 500 Internal Server Error | Unexpected error |
| 502 Bad Gateway | External service failure |
| 503 Service Unavailable | Temporarily down |
{ "data": { ... } }{ "data": [...], "pagination": {...} }Required fields:
code - Machine-readable error codemessage - Human-readable descriptionOptional fields:
details - Field-specific errors (validation)correlationId - For debugging/supportpage, pageSize, totalItems, totalPages?status=active?status=active&role=admin?createdAt[gte]=2024-01-01?search=keyword?sort=createdAt?sort=-createdAt?sort=lastName,firstName?fields=id,email,username/api/v1/resourceSunset header on deprecated versions