DonGuillotine/AT100DaysChallenge
Implement Django REST Framework for API Development
Aperta
#1 aperta il 24 gen 2025
backendenhancementgood first issue
Metriche repository
- Star
- (2 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Convert the existing Django backend into a REST API using Django REST Framework (DRF).
Tasks:
- Install
djangorestframeworkand add to requirements.txt - Configure DRF in Django settings
- Create serializers for Book and BookChunk models
- Implement API viewsets for models
- Set up API routing with DRF router
- Add API documentation using drf-spectacular or drf-yasg
- Create basic API endpoints:
- GET /api/books/ - List all books
- GET /api/books/{id}/ - Get specific book details
- GET /api/books/{id}/chunks/ - Get book chunks