💬
Prompts
API Design
Проектирование REST API эндпоинтов
Design REST API for: [RESOURCE/FEATURE]
Please provide:
1. **Endpoints**
- HTTP method + path
- Request params/body
- Response format (JSON)
- Status codes
2. **Authentication/Authorization**
- Who can access what
- Token handling
3. **Error responses**
- Standard error format
- Validation errors
- Not found, unauthorized, etc.
4. **Rails implementation**
- Routes
- Controller actions
- Serializers/Jbuilder
5. **Examples**
- curl commands for each endpoint
- Sample responses
Follow JSON:API conventions where appropriate.