DonGuillotine/AT100DaysChallenge

Implement Django REST Framework for API Development

オープン

#1 opened on 2025/01/24

 (6 件のコメント) (0 件のリアクション) (0 人の担当者)Python (1 件のフォーク)auto 404
backendenhancementgood first issue

Repository metrics

Stars
 (2 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド