4.17 out of 5
4.17
304 reviews on Udemy

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.
Instructor:
Justin Mitchel
1,253 students enrolled
English [Auto-generated]
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

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.

Introduction

1
Welcome

API Basics

1
Welcome
2
Behind the API
3
The Magic of REST APIs

Pure Django API

1
Requirements
2
Blank Django Project
3
The Updates App and Model
4
A JSON Response
5
HttpResponse with Json Data
6
JSON CBV
7
Serialize Data
8
Managers & Methods to Produce Serialized Data
9
The Dot Values Method
10
Practical API Module
11
Practical API Module Part 2
12
Use the API with Python Requests
13
Handling Errors
14
Http Status Codes
15
Validating Data with a Model Form
16
Update & Delete
17
Validate JSON
18
Update & Delete Part 2
19
One Endpoint to Rule the Model

Django Rest Framework

1
Introduction
2
Install Django Rest Framework
3
Status Model & App
4
Model Form for Validation
5
Creating a Serializer
6
Create & Update through Serializers
7
Validation & Fields
8
API Endpoints Overview
9
List & Search API View
10
Create API View
11
Detail API View
12
Update & Delete API Views
13
Mixins to Power Http Methods
14
One API Endpoint for CRUDL
15
One API Endpoint for CRUDL Part 2
16
Uploading & Handling Images
17
2 Views for CRUDL
18
Authentication & Permissions
19
Global Settings for Authentication & Permissions
20
Permission Tests with Python Requests
21
Implement JWT Authentication
22
JWT Authorization Header
23
Custom JWT Response Payload Handler
24
Custom Authentication View
25
Register API View
26
User Register Serializer
27
Serializer Method Field
28
Get Context Data
29
Custom Permissions
30
Is Owner or Read Only Permission
31
Nested Serializer Part 1
32
Nested Serializer Part 2
33
Nested Serializer Part 3
34
Pagination to Manage Request Load
35
Search Filter & Ordering
36
Reverse URLs with DRF
37
Serializer related fields
38
Automated Testing
39
Testing User API
40
Testing API
41
Testing with a Temporary Image
42
Django Rest API Wrap Up

Thank you and next steps

1
Thank you and next steps
You can view and review the lecture materials indefinitely, like an on-demand channel.
Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don't have an internet connection, some instructors also let their students download course lectures. That's up to the instructor though, so make sure you get on their good side!
4.2
4.2 out of 5
304 Ratings

Detailed Rating

Stars 5
146
Stars 4
90
Stars 3
37
Stars 2
20
Stars 1
12
9d1e2004b80813a819a607b462ef24d1
30-Day Money-Back Guarantee

Includes

10 hours on-demand video
Full lifetime access
Access on mobile and TV
Certificate of Completion