Please enable JavaScript.
Coggle requires JavaScript to display documents.
Django REST framework Tutorial - Coggle Diagram
Django REST framework
Tutorial
:one:Serialization
Introduction
Setting up a new environment
Getting started
Creating a model to work with
Creating a Serializer class
Working with Serializers
Using ModelSerializers
Writing regular Django views using our Serializer
Testing our first attempt at a Web API
:two:Requests and Responses
Request objects
Response objects
Status codes
Wrapping API views
Pulling it all together
Adding optional format suffixes to our URLs
:three:Class-based Views
Rewriting our API using class-based views
Using mixins
Using generic class-based views
:four:Authentication & Permissions
Adding information to our model
Adding endpoints for our User models
Associating Snippets with Users
Updating our serializer
Adding required permissions to views
Adding login to the Browsable API
Object level permissions
Authenticating with the API
:five:Relationships & Hyperlinked APIs
Creating an endpoint for the root of our API
Creating an endpoint for the highlighted snippets
Hyperlinking our API
Making sure our URL patterns are named
Adding pagination
Browsing the API
:six:ViewSets & Routers
Refactoring to use ViewSets
Binding ViewSets to URLs explicitly
Using Routers
Trade-offs between views vs viewsets