Build a Python REST API with the Django Rest Framework
4.3 (586 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,337 students enrolled

Build a Python REST API with the Django Rest Framework

Connect devices, front ends, other apps, and much more by creating your own REST API. Learn how in this course.
4.3 (586 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
2,337 students enrolled
Created by Justin Mitchel
Last updated 6/2018
English
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 10 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
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
Course content
Expand all 66 lectures 10:07:44
+ API Basics
3 lectures 37:37
Behind the API
09:39
The Magic of REST APIs
27:33
+ Pure Django API
19 lectures 02:52:23
HttpResponse with Json Data
02:28
JSON CBV
08:11
Serialize Data
08:30
Managers & Methods to Produce Serialized Data
08:22
The Dot Values Method
05:25
Practical API Module
08:06
Practical API Module Part 2
10:13
Use the API with Python Requests
10:23
Handling Errors
12:15
Http Status Codes
06:58
Validating Data with a Model Form
14:40
Update & Delete
12:25
Validate JSON
07:35
Update & Delete Part 2
15:05
One Endpoint to Rule the Model
19:57
+ Django Rest Framework
42 lectures 06:34:53
Introduction
03:08
Install Django Rest Framework
04:20
Status Model & App
05:03
Model Form for Validation
05:52
Creating a Serializer
12:18
Create & Update through Serializers
11:11
Validation & Fields
08:42
API Endpoints Overview
05:33
List & Search API View
09:25
Create API View
02:33
Detail API View
03:13
Update & Delete API Views
03:13
Mixins to Power Http Methods
09:46
One API Endpoint for CRUDL
12:44
One API Endpoint for CRUDL Part 2
16:32
Uploading & Handling Images
10:22
2 Views for CRUDL
08:06
Authentication & Permissions
11:21
Global Settings for Authentication & Permissions
05:27
Permission Tests with Python Requests
07:05
Implement JWT Authentication
10:44
JWT Authorization Header
10:15
Custom JWT Response Payload Handler
06:09
Custom Authentication View
15:07
Register API View
09:13
User Register Serializer
10:22
Serializer Method Field
05:03
Get Context Data
05:53
Custom Permissions
06:55
Is Owner or Read Only Permission
12:50
Nested Serializer Part 1
08:51
Nested Serializer Part 2
07:32
Nested Serializer Part 3
16:20
Pagination to Manage Request Load
08:37
Search Filter & Ordering
11:19
Reverse URLs with DRF
10:26
Serializer related fields
11:57
Automated Testing
07:47
Testing User API
19:04
Testing API
20:44
Testing with a Temporary Image
20:18
Django Rest API Wrap Up
03:33
Requirements
  • Some Python Experience
  • Some Django Experience
Description

REST APIs Power the Internet

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.

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