This template helps you create well-structured API endpoints with proper HTTP methods, status codes, and response handling. It ensures your endpoints follow RESTful conventions and include comprehensive error handling.
Create a REST API endpoint for user profile management:
- GET /api/users/:id - retrieve user profile
- PUT /api/users/:id - update user profile
- Include validation, authentication, and proper error responses
- Return appropriate HTTP status codes
- Add rate limiting and security headers
peep api-endpoint