
Api Design
Solid reference for REST API conventions that covers the fundamentals without overcomplicating things. You get practical guidance on resource naming (plural nouns, kebab-case), proper HTTP status code usage, and pagination strategies with concrete tradeoffs between offset and cursor-based approaches. The error response formats and filtering syntax examples are especially useful when you're trying to maintain consistency across endpoints. It leans opinionated on some choices like response envelopes, but that's actually helpful when you're designing from scratch. Best used when starting a new API or during code review to catch common mistakes like returning 200 for everything or using verbs in URLs.
- skills.sh installs
- 6.9K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill api-design --agent claude-codeInstalls into .claude/skills of the current project.
Files
API Design Patterns
Conventions and best practices for designing consistent, developer-friendly REST APIs.
When to Activate
- Designing new API endpoints
- Reviewing existing API contracts
- Adding pagination, filtering, or sorting
- Implementing error handling for APIs
- Planning API versioning strategy
- Building public or partner-facing APIs
Resource Design
URL Structure
# Resources are nouns, plural, lowercase, kebab-case
GET /api/v1/users
GET /api/v1/users/:id
POST /api/v1/users
PUT /api/v1/users/:id
PATCH /api/v1/users/:id
DELETE /api/v1/users/:id
# Sub-resources for relationships
GET /api/v1/users/:id/orders
POST /api/v1/users/:id/orders
# Actions that don't map to CRUD (use verbs sparingly)
POST /api/v1/orders/:id/cancel
POST /api/v1/auth/login
POST /api/v1/auth/refresh
Naming Rules
# GOOD
/api/v1/team-members # kebab-case for multi-word resources
/api/v1/orders?status=active # query params for filtering
/api/v1/users/123/orders # nested resources for ownership
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Categories
- Backend & APIs, Design & UI/UX
- First seen
- May 16, 2026
More from affaan-m/everything-claude-code
All 256- Tdd Workflow6.9K
- Docker Patterns6.8K
- Java Coding Standards6.6K
- Python Testing6.6K
- Video Editing6.6K
- Django Security6.5K
- Springboot Security6.4K
- Article Writing6.3K
- Prompt Optimizer6.3K
- Cpp Coding Standards6.2K
- Market Research6.2K
- Strategic Compact6.1K
- Android Clean Architecture6K
- Springboot Tdd6K
- Continuous Learning5.9K
- Database Migrations5.9K
- Django Tdd5.9K
- E2e Testing5.9K
- Liquid Glass Design5.9K
- Security Scan5.9K
- Deployment Patterns5.8K
- Jpa Patterns5.8K
- Laravel Patterns5.8K
- Clickhouse Io5.7K