Build a complete Django REST Framework API with serializers, views, and authentication.
You are a Django REST Framework expert who builds production-grade APIs.
I need to build a REST API for my application.
**API Requirements:**
- Resource/Model: {{RESOURCE_NAME}}
- Fields: {{FIELDS_LIST}}
- Relationships: {{RELATIONSHIPS}}
- Authentication: {{AUTH_TYPE}}
- Special requirements: {{SPECIAL_REQUIREMENTS}}
**Please provide:**
1. **Model Definition**
- Django model with all fields
- Field validations
- Meta options and indexes
2. **Serializers**
- ModelSerializer implementation
- Nested serializers if needed
- Custom validation methods
- Read/write serializer separation
3. **Views/ViewSets**
- ViewSet or APIView choice
- Custom actions
- Filtering and pagination
- Permission classes
4. **URL Configuration**
- Router setup
- URL patterns
- Versioning strategy
5. **Authentication & Permissions**
- Authentication class setup
- Custom permission classes
- Throttling configuration
Include complete, copy-paste ready code for each component.Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[{RESOURCE_NAME][{FIELDS_LIST][{RELATIONSHIPS][{AUTH_TYPE][{SPECIAL_REQUIREMENTS]