YoVDO

Django REST Framework Course

Offered By: Treehouse

Tags

Django Courses Web Development Courses CRUD Operations Courses Token-Based Authentication Courses HTTP Methods Courses Serialization Courses Django Rest Framework Courses

Course Description

Overview

You’ve been learning Django and building great things. Suddenly it hits you. How do I take all this data I have and make it available to the world? Look no further than Django Rest Framework (DRF). DRF is a powerful and flexible framework, on top of a framework (Django), for building RESTful Web APIs. Built-in features like the Web browsable API, authentication policies, robust serialization for your models and excellent documentation make it a great choice for your API needs.

What you'll learn

  • Installing Django REST Framework
  • Serializing Models
  • Handling HTTP Methods
  • Write your own APIView
  • Security and Authentication

Syllabus

RESTful Django

In this stage, you are going to learn how to add Django REST Framework to a Django project, the basics of model serializers, and how to handle HTTP methods.

Chevron 8 steps
  • What is Django REST Framework?

    2:42

  • Installation and Setup

    5:40

  • Model Serializers

    8:59

  • Create Serializers

    3 objectives

  • GET Requests with APIViews

    6:17

  • Create a ListView

    3 objectives

  • POSTing to an APIView

    7:16

  • Create a ListView with a POST

    1 objective

Make the REST Framework Work for You

In this stage, you'll work with viewsets, routers, and pagination in the Django REST API.

Chevron 12 steps
  • Generic CRUD

    8:15

  • Create a ListCreateAPIView

    2 objectives

  • Overriding Generic View Methods

    11:03

  • Control the QuerySet

    1 objective

  • Viewsets and Routers

    10:50

  • Create a Viewset and Router

    3 objectives

  • Customizing Viewsets

    4:49

  • Customize a Viewset's Methods

    1 objective

  • Relations

    6:30

  • Show Related Records

    1 objective

  • Pagination

    6:56

  • Review: Django REST Framework Basics

    5 questions

Security and Customization

Now it's time to look into token-based authentication, enforcing permission checks, and enabling throttling. You'll also add some custom data to your serializer and validate serializer data.

Chevron 12 steps
  • Token Authentication

    8:22

  • Set Up Token Auth

    2 objectives

  • Permissions

    10:56

  • Set Permissions

    1 objective

  • Enhancing Your Calm with Throttling

    4:42

  • Set Throttling

    1 objective

  • Customizing Validation

    4:42

  • Validate Field

    1 objective

  • Validate Two Fields

    1 objective

  • Customizing Serialization

    6:31

  • Add Custom Field

    1 objective

  • Review: Django REST Framework

    6 questions


Taught by

Chris Jones

Related Courses

Learn Intermediate Java
Codecademy
Learn Intermediate Java: Serialization
Codecademy
Kafka Streams API for Developers Using Java/Spring Boot 3.X
Packt via Coursera
Programming with Java
Amazon via Coursera
Python API Development - Comprehensive Course for Beginners
freeCodeCamp