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