
Home - Django REST framework
Django REST framework is a powerful and flexible toolkit for building Web APIs. Some reasons you might want to use REST framework: The Web browsable API is a huge usability win for …
Quickstart - Django REST framework
We can now access our API, both from the command-line, using tools like curl... bash: curl -u admin -H 'Accept: application/json; indent=4' http://127.0.0.1:8000/users/ Enter host password …
Tutorials and Resources - Django REST framework
Full Text Search in Django REST Framework with Database Backends OAuth2 Authentication with Django REST Framework and Custom Third-Party OAuth2 Backends Nested Resources …
Views - Django REST framework
In addition to the documentation here, the Classy Django REST Framework resource provides a browsable reference, with full methods and attributes, for each of Django REST Framework's …
2 - Requests and responses - Django REST framework
REST framework introduces a Request object that extends the regular HttpRequest, and provides more flexible request parsing. The core functionality of the Request object is the request.data …
Requests - Django REST framework
REST framework's Request objects provide flexible request parsing that allows you to treat requests with JSON data or other media types in the same way that you would normally deal …
Documenting your API - Django REST framework
The browsable API that REST framework provides makes it possible for your API to be entirely self describing. The documentation for each API endpoint can be provided simply by visiting …
1 - Serialization - Django REST framework
In the same way that Django provides both Form classes and ModelForm classes, REST framework includes both Serializer classes, and ModelSerializer classes. Let's look at …
Testing - Django REST framework
test.py Testing Code without tests is broken as designed. — Jacob Kaplan-Moss REST framework includes a few helper classes that extend Django's existing test framework, and …
Serializers - Django REST framework
The dynamic-rest package extends the ModelSerializer and ModelViewSet interfaces, adding API query parameters for filtering, sorting, and including / excluding all fields and relationships …