Django REST Framework

TaskBoard API Capstone

Complete REST API for TaskBoard

TaskBoard API Capstone

Deliver a minimal production-style API surface:

  1. ProjectViewSet and TaskViewSet scoped to request.user
  2. Serializers with validation and read-only nested fields
  3. Router under /api/v1/
  4. Token auth for CLI tests; session auth for browser tools
  5. Pagination on list endpoints
  6. APITestCase covering list + create + 403 for other user's task
curl -H "Authorization: Token YOUR_TOKEN" http://127.0.0.1:8000/api/v1/tasks/

Django REST Framework — Knowledge Check

Check your understanding of this section. Results are not saved—refresh the page to start over.

1. DRF is best when you need:
2. A ModelSerializer typically:
3. Response(status=404) in an API view:
4. ModelViewSet with a router provides:
5. IsAuthenticated permission class:
6. PageNumberPagination helps: