Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Building RESTful Web APIs with Django

via LinkedIn Learning

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to build a RESTful web API using the Django REST framework.

Syllabus

Introduction
  • Create a REST API with Django and Django REST framework
  • What you should know
  • Demo project overview
1. Serializing, Listing, Filtering, and Paginating Models
  • Creating a Django Rest framework serializer to serialize a model
  • Creating a ListAPIView subclass
  • Connecting an APIView to a route
  • Filter back ends with URL query parameters
  • Enabling full-text search filter back end
  • Enabling pagination of querysets in API responses
2. Create, Retrieve, Update, and Delete (CRUD) Operations for Models
  • Creating a CreateAPIView subclass
  • Connecting a CreateAPIView to the router
  • Creating a DestroyAPIView subclass
  • Connecting a DestroyAPIView to the router
  • Creating an UpdateAPIView subclass
  • Connecting an UpdateAPIView to the router
3. Managing Serializer Fields, Relations, and Validation
  • Serializer with only selected fields
  • Serializer that shows model relationships
  • Number fields with serializers
  • Date and time fields with serializers
  • Lists, dicts, and JSON objects
  • Serializer with ImageField and FileField
4. Testing API Views
  • Test case for a CreateAPIView subclass
  • Test case for a DestroyAPIView subclass
  • Test case for a ListAPIView subclass
  • Unit test for an UpdateAPIView subclass
  • Handling image uploads in a unit test
Conclusion
  • Next steps

Taught by

Rudolf Olah

Reviews

4.2 rating at LinkedIn Learning based on 290 ratings

Start your review of Building RESTful Web APIs with Django

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.