API Generator Skill
Use this skill to scaffold complete REST API endpoints following the project's established patterns.
When to Use
Apply this skill when:
- Adding new resource endpoints (GET, POST, PUT, DELETE)
- Generating CRUD operations for a new data model
- Creating webhook handlers with signature validation
Process
- Review the data model or schema in
src/models/ - Check existing endpoint patterns in
src/api/ - Generate the route handler using the template
- Add Zod validation schemas for request/response
- Write unit and integration tests
- Update OpenAPI spec in
docs/api/
References
See route checklist for required fields on each endpoint type.