| name | api-endpoint |
| description | Scaffold a new REST API endpoint with route, validation, service, and tests. Use when asked to add a new API endpoint. |
API Endpoint Scaffold
Create a new REST endpoint following our standards.
Steps
- Read route-template.ts for structure
- Define Zod schema for request/response
- Create route handler in
backend/src/routes/
- Create service method in
backend/src/services/
- Add repository method if DB access needed
- Write integration tests
- Update OpenAPI spec
Arguments: $ARGUMENTS — HTTP method and path, e.g. POST /users/:id/invite