AGENT SKILL
api-design
RESTful API design principles and best practices
- License 许可
- MIT
- 所属仓库
- NeuralBlitz/Mito
- 最近更新
- 2026-11-12
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- api-design
- license
- MIT
- metadata
- { "audience": "developers", "category": "api-design" }
- description
- RESTful API design principles and best practices
- compatibility
- opencode
03 SKILL.md 正文
What I do
- Design clean REST APIs
- Choose appropriate HTTP methods
- Handle resource relationships
- Implement pagination and filtering
- Version APIs effectively
- Document APIs with OpenAPI
- Handle errors consistently
- Design for scalability
When to use me
When designing or implementing REST APIs.
Resource Design
Resources should be nouns:
GET /users # List users
GET /users/{id} # Get user
POST /users # Create user
PUT /users/{id} # Update user
PATCH /users/{id} # Partial update
DELETE /users/{id} # Delete user
Sub-resources:
GET /users/{id}/posts # User's posts
GET /users/{id}/orders # User's orders
Actions as resources:
POST /users/{id}/activate
POST /users/{id}/deactivate
Response Patterns
{
"data": {},
"meta": {
"page": 1,
"per_page": 20,
"total": 100
},
"links": {
"self": "/api/v1/users?page=1",
"next": "/api/v1/users?page=2"
}
}
{
"errors": [
{
"code": "VALIDATION_ERROR",
"message": "The email field is required",
"field": "email",
"status": 400
}
]
}
04 同仓库更多 Skills
wireless-communications
Wireless systems, mobile networks, and 5G/6G
★ 0
websockets
WebSocket implementation and best practices
★ 0
vulnerability-auditing
Vulnerability assessment and auditing
★ 0
vulnerability-assessment
Finding and assessing security vulnerabilities
★ 0
vlsi-design
Very-Large-Scale Integration circuit design and semiconductor engineering
★ 0
unsupervised
Unsupervised learning concepts
★ 0