name: api-endpoint-create description: Standard procedure for creating robust API endpoints
Procedure
- Define the Request/Response schema (Zod/OpenAPI).
- Create the route handler/controller.
- Implement business logic in a service layer.
- Add authentication/authorization middleware.
- Write an integration test for the endpoint.