REST is a loosely defined protocol for listing, creating, changing, and deleting data on your server over HTTP. The Django REST framework (DRF) is a toolkit built on top of the Django web framework that reduces the amount of code you need to write to create REST interfaces.
In this course you’ll learn about:
- The REST protocol
- DRF
Serializers
and how to use them with Django objects - Using Django
views
and DRFViewSet
classes to create REST end-points - Multiple flavors of renderers and how to control their output
- Specifying permissions and limiting who can see what data in your REST API
This course assumes you are familiar with Django models, views, URL patterns, and the admin interface. For more background on these topics see:
Here are resources for curl and Black:
Sample code provided in the Supporting Materials drop-down was tested using Python 3.13, Django 5.1.2, and the Django REST Framework 3.15.2.