DonGuillotine/AT100DaysChallenge

Implement Django REST Framework for API Development

Offen

#1 geöffnet am 24.01.2025

 (6 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (1 Fork)auto 404
backendenhancementgood first issue

Repository-Metriken

Stars
 (2 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Convert the existing Django backend into a REST API using Django REST Framework (DRF).

Tasks:

  • Install djangorestframework and 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

Contributor Guide