When to use
- New CRUD endpoints for a resource
- Greenfield resource scaffolding
- Adding query parameters or pagination to existing routes
Steps
- Read the route checklist for requirements.
- Generate a controller from template.ts for the resource name.
- Wire the route into the router and update the OpenAPI document.
Outputs
- Controller file under
src/controllers/ - Test stub under
tests/controllers/ - Updated OpenAPI document