All Courses Backend

Building APIs with Django REST Framework

Learn to design and build production-ready REST APIs using Django and Django REST Framework — the industry standard for Python APIs. You'll cover serializers, class-based views, ViewSets, authentication, permissions, filtering, pagination, and testing. Project: build a fully functional Course Enrollment API from scratch and deploy it to production.

23 lessons ~5.8h Includes real project 100% Free
What You'll Build

Module 6 — Full Project: Course Enrollment API

Every course ends with a real project you build from scratch. No tutorials where you just follow along — you plan it, build it, and ship it yourself.

Course Curriculum

7 modules · 23 lessons · ~5.8h

1 Module 1 — REST APIs & Django Setup
3 lessons
  • What Is a REST API? 12 min
  • Setting Up Django + DRF 15 min
  • Designing Your Models 18 min
2 Module 2 — Serializers
3 lessons
  • Serializers: Converting Models to JSON 16 min
  • Validation in Serializers 15 min
  • Nested Serializers & Related Fields 16 min
3 Module 3 — Views, ViewSets & Routers
4 lessons
  • APIView: Writing Views Manually 18 min
  • Generic Views: Less Code, Same Power 14 min
  • ViewSets & Routers 18 min
  • Filtering, Searching & Ordering 14 min
4 Module 4 — Authentication & Permissions
3 lessons
  • Authentication in DRF 14 min
  • JWT Authentication 16 min
  • Permissions 15 min
5 Module 5 — Pagination, Error Handling & Testing
3 lessons
  • Pagination 12 min
  • Error Handling & Custom Responses 14 min
  • Testing Your API with DRF's APIClient 18 min
6 Module 6 — Full Project: Course Enrollment API
4 lessons
  • Project Overview & Final Architecture 12 min
  • Complete ViewSet Implementation 25 min
  • API Documentation with drf-spectacular 12 min
  • Deploying to Heroku 18 min
7 Module 7 — Running Your Django API Locally
3 lessons
  • Starting the Django Development Server 14 min
  • Testing Your API with VS Code REST Client 13 min
  • Django + VS Code Debugger 12 min