All skills
Skillintermediate
add endpoint
Add a new API endpoint to an existing backend service with validation and tests.
Claude Code Knowledge Pack7/10/2026
Overview
Add a new API endpoint to an existing backend service with validation and tests.
Steps
- Define the endpoint specification:
- Identify the framework and add the route:
- Implement the handler:
- Add input validation:
- Add middleware if needed:
- Write tests:
- Update API documentation.
Format
Endpoint: <path>
Auth: <required|optional|none>
Request: <body schema>
Response: <success schema>
Rules
- Follow REST conventions: POST for create, PUT for replace, PATCH for update.
- Return appropriate HTTP status codes (201 for create, 204 for delete).
- Validate all input before processing.