Django REST Framework
Django REST Framework (source code), typically abbreviated "DRF", is a Python library for building web application programming interfaces (APIs).
Django REST Framework resources
-
How to Developer APIs with Django REST Framework covers the steps for creating a development environment for your Django+DRF project then creating API endpoints with the test-driven development (TDD) approach.
-
The official DRF tutorial is one of the best first-party pieces of documentation on any open source project. The rest of the DRF docs are spectacular as well.
-
Django: Building REST APIs is the first part in an excellent multi-part series on DRF:
-
How to optimize your Django REST Viewsets provides a good step-by-step example about using
select_relatedandprefetch_relatedin the Django ORM layer to avoid large numbers of unnecessary queries in your views. Also, props to the author for wearing a UVA t-shirt in his picture when his blog says he works as a developer in Blacksburg, Virginia (where Virginia Tech is located). -
How to Save Extra Data to a Django REST Framework Serializer is a concise, handy tutorial for combining additional data with the already-defined DRF serializer fields before saving everything to a database or similar action.
-
Django polls api using Django REST Framework gives a great walkthrough for creating a question polling application backend with code and the explanation as you build it.
-
Django REST Framework Permissions in Depth has code examples and explains permission classes versus authentication classes in DRF.
