Skip to main content
CF

Build a Python REST API with the Django Rest Framework

10h 8m 56s
English
Paid

How does Apple Maps have Yelp listings? How does Tinder get Facebook user profiles? How does Amazon Alexa know the latest news? These questions get to the core of how powerful REST APIs can be: it allows for websites to communicate with each other without any human interaction.

Building a REST API isn't just about connecting with third party services, it's also about:

  • Adding Authentication, Registration, Databases, and more to your Mobile App, IOT Device, TV app, Car app, and more
  • Connecting your own web apps with each other
  • Creating micro-services
  • Adding a backend for Angular, React, iOS Apps, Android apps, and more
  • Simplifying the process of separating your backend from your frontend
  • Making it easier to build additional services with new developers

This course will teach you step-by-step exactly how to build a REST API

We'll cover the concepts first, then we'll go into build a PURE DJANGO REST API, then we'll use the Django REST Framework to build a REST API.

Requirements:
  • Some Python Experience
  • Some Django Experience
Who this course is for:
  • Anyone looking to connect their apps (mobile, web, iot, TV, etc) to a REST API
  • Anyone looking to get better at building web applications
  • Anyone looking to add Users, Security, Permissions, and a Database to anything that can connect to the internet
  • Pythonistas and Beginner Python learners
  • Djangonauts and Beginner Django learners

What you'll learn:

  • What is an API?
  • What is a REST API?
  • How to build your own REST API
  • A deeper understanding of Django
  • A deep understanding of the Django Rest Framework
  • A deep understanding of JWT and authentication with the Django Rest Framework
  • Building an REST API with Python

About the Author: Udemy

Udemy thumbnail

Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

Watch Online 66 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 66 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: Welcome
All Course Lessons (66)
#Lesson TitleDurationAccess
1
Welcome Demo
01:43
2
Welcome
00:26
3
Behind the API
09:40
4
The Magic of REST APIs
27:34
5
Requirements
01:29
6
Blank Django Project
04:51
7
The Updates App and Model
06:42
8
A JSON Response
08:53
9
HttpResponse with Json Data
02:30
10
JSON CBV
08:12
11
Serialize Data
08:31
12
Managers & Methods to Produce Serialized Data
08:23
13
The Dot Values Method
05:26
14
Practical API Module
08:07
15
Practical API Module Part 2
10:14
16
Use the API with Python Requests
10:24
17
Handling Errors
12:16
18
Http Status Codes
07:00
19
Validating Data with a Model Form
14:42
20
Update & Delete
12:26
21
Validate JSON
07:36
22
Update & Delete Part 2
15:06
23
One Endpoint to Rule the Model
19:59
24
Introduction
03:09
25
Install Django Rest Framework
04:21
26
Status Model & App
05:04
27
Model Form for Validation
05:53
28
Creating a Serializer
12:19
29
Create & Update through Serializers
11:12
30
Validation & Fields
08:43
31
API Endpoints Overview
05:34
32
List & Search API View
09:26
33
Create API View
02:34
34
Detail API View
03:14
35
Update & Delete API Views
03:15
36
Mixins to Power Http Methods
09:47
37
One API Endpoint for CRUDL
12:45
38
One API Endpoint for CRUDL Part 2
16:33
39
Uploading & Handling Images
10:23
40
2 Views for CRUDL
08:07
41
Authentication & Permissions
11:22
42
Global Settings for Authentication & Permissions
05:28
43
Permission Tests with Python Requests
07:06
44
Implement JWT Authentication
10:45
45
JWT Authorization Header
10:16
46
Custom JWT Response Payload Handler
06:10
47
Custom Authentication View
15:08
48
Register API View
09:14
49
User Register Serializer
10:23
50
Serializer Method Field
05:04
51
Get Context Data
05:54
52
Custom Permissions
06:56
53
Is Owner or Read Only Permission
12:51
54
Nested Serializer Part 1
08:52
55
Nested Serializer Part 2
07:33
56
Nested Serializer Part 3
16:21
57
Pagination to Manage Request Load
08:38
58
Search Filter & Ordering
11:20
59
Reverse URLs with DRF
10:27
60
Serializer related fields
11:58
61
Automated Testing
07:48
62
Testing User API
19:05
63
Testing API
20:45
64
Testing with a Temporary Image
20:19
65
Django Rest API Wrap Up
03:34
66
Thank you and next steps
01:10
Unlock unlimited learning

Get instant access to all 65 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Course content

66 lessons · 10h 8m 56s
Show all 66 lessons
  1. 1 Welcome 01:43
  2. 2 Welcome 00:26
  3. 3 Behind the API 09:40
  4. 4 The Magic of REST APIs 27:34
  5. 5 Requirements 01:29
  6. 6 Blank Django Project 04:51
  7. 7 The Updates App and Model 06:42
  8. 8 A JSON Response 08:53
  9. 9 HttpResponse with Json Data 02:30
  10. 10 JSON CBV 08:12
  11. 11 Serialize Data 08:31
  12. 12 Managers & Methods to Produce Serialized Data 08:23
  13. 13 The Dot Values Method 05:26
  14. 14 Practical API Module 08:07
  15. 15 Practical API Module Part 2 10:14
  16. 16 Use the API with Python Requests 10:24
  17. 17 Handling Errors 12:16
  18. 18 Http Status Codes 07:00
  19. 19 Validating Data with a Model Form 14:42
  20. 20 Update & Delete 12:26
  21. 21 Validate JSON 07:36
  22. 22 Update & Delete Part 2 15:06
  23. 23 One Endpoint to Rule the Model 19:59
  24. 24 Introduction 03:09
  25. 25 Install Django Rest Framework 04:21
  26. 26 Status Model & App 05:04
  27. 27 Model Form for Validation 05:53
  28. 28 Creating a Serializer 12:19
  29. 29 Create & Update through Serializers 11:12
  30. 30 Validation & Fields 08:43
  31. 31 API Endpoints Overview 05:34
  32. 32 List & Search API View 09:26
  33. 33 Create API View 02:34
  34. 34 Detail API View 03:14
  35. 35 Update & Delete API Views 03:15
  36. 36 Mixins to Power Http Methods 09:47
  37. 37 One API Endpoint for CRUDL 12:45
  38. 38 One API Endpoint for CRUDL Part 2 16:33
  39. 39 Uploading & Handling Images 10:23
  40. 40 2 Views for CRUDL 08:07
  41. 41 Authentication & Permissions 11:22
  42. 42 Global Settings for Authentication & Permissions 05:28
  43. 43 Permission Tests with Python Requests 07:06
  44. 44 Implement JWT Authentication 10:45
  45. 45 JWT Authorization Header 10:16
  46. 46 Custom JWT Response Payload Handler 06:10
  47. 47 Custom Authentication View 15:08
  48. 48 Register API View 09:14
  49. 49 User Register Serializer 10:23
  50. 50 Serializer Method Field 05:04
  51. 51 Get Context Data 05:54
  52. 52 Custom Permissions 06:56
  53. 53 Is Owner or Read Only Permission 12:51
  54. 54 Nested Serializer Part 1 08:52
  55. 55 Nested Serializer Part 2 07:33
  56. 56 Nested Serializer Part 3 16:21
  57. 57 Pagination to Manage Request Load 08:38
  58. 58 Search Filter & Ordering 11:20
  59. 59 Reverse URLs with DRF 10:27
  60. 60 Serializer related fields 11:58
  61. 61 Automated Testing 07:48
  62. 62 Testing User API 19:05
  63. 63 Testing API 20:45
  64. 64 Testing with a Temporary Image 20:19
  65. 65 Django Rest API Wrap Up 03:34
  66. 66 Thank you and next steps 01:10

Related courses

  • The Ultimate Flask Course thumbnailUpdated 2y ago

    The Ultimate Flask Course

    By: Udemy
    Welcome to The Ultimate Flask Course. This course is designed to teach you everything you need to know to get started building your own Python-based web apps us
    28 hours 4 minutes 28 seconds
  • Create Telegram Bot with Python thumbnailUpdated 2y ago

    Create Telegram Bot with Python

    By: Udemy
    Learn to build your own Telegram bot using Python. This course guides you from setup to real-world application, ideal for Python developers.
    1 hour 22 minutes 55 seconds
  • The Automation Bootcamp: Zero to Mastery thumbnailFreeUpdated 2y ago

    The Automation Bootcamp: Zero to Mastery

    By: Zero To Mastery
    Become an automation expert with hands-on projects using Python. No experience needed to automate boring tasks. Learn advanced tools and tricks.
    22 hours 39 minutes 15 seconds 5 / 5

Frequently asked questions

What is Build a Python REST API with the Django Rest Framework about?
How does Apple Maps have Yelp listings? How does Tinder get Facebook user profiles? How does Amazon Alexa know the latest news? These questions get to the core of how powerful REST APIs can be: it allows for websites to communicate with…
Who teaches Build a Python REST API with the Django Rest Framework?
Build a Python REST API with the Django Rest Framework is taught by Udemy. You can find more courses by this instructor on the corresponding source page.
How long is Build a Python REST API with the Django Rest Framework?
Build a Python REST API with the Django Rest Framework contains 66 lessons with a total runtime of 10 hours 8 minutes. All lessons are available to watch online at your own pace.
Is Build a Python REST API with the Django Rest Framework free to watch?
Build a Python REST API with the Django Rest Framework is part of CourseFlix's premium catalog. A CourseFlix subscription unlocks the full video player; the course description, table of contents, and preview information are available to everyone.
Where can I watch Build a Python REST API with the Django Rest Framework online?
Build a Python REST API with the Django Rest Framework is available to watch online on CourseFlix at https://courseflix.net/course/build-a-python-rest-api-with-the-django-rest-framework. The page hosts every lesson with the integrated video player; no download is required.