0
Design api
Projenin etki alanı modeline ve gereksinimlerine göre bir RESTful veya GraphQL API tasarlayın.
yazan kuscubasiece·8 Eylül 2026
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
Projenin etki alanı modeline ve gereksinimlerine göre bir RESTful veya GraphQL API tasarlayın.
Kaynak: rohitg00/awesome-claude-code-toolkit · Apache-2.0
mkdir -p .claude/commands && curl -sL https://www.antrophiclove.com/api/kaynak/design-api/raw -o .claude/commands/design-api.mdHedef dosya: .claude/commands/design-api.md
Design a RESTful or GraphQL API based on the project's domain model and requirements.
Analyze the existing codebase to understand the domain:
Design the resource hierarchy following REST conventions:
/users, /orders, /products)/users/{id}/orders, not /users/{id}/orders/{id}/items)GET /resources - List with pagination (cursor-based preferred over offset)GET /resources/{id} - Retrieve single resourcePOST /resources - Create new resourcePUT /resources/{id} - Full update (replace)PATCH /resources/{id} - Partial updateDELETE /resources/{id} - Remove resourceDefine request and response shapes:
{ "data": ..., "meta": { "total", "cursor" } }{ "error": { "code": "...", "message": "...", "details": [...] } }Design authentication and authorization:
Plan for versioning:
/v1/resources) for simplicityDesign cross-cutting concerns:
?cursor= and ?limit= parameters?status=active&created_after=2024-01-01)?sort=created_at:desc,name:asc?fields=id,name,email for bandwidth optimizationPOST /resources/batch for creating multiple itemsPresent the API design as a structured table of endpoints with: