Summary
In this chapter, we took advantage of many features included in Django REST Framework to define throttling policies. We used the filtering, searching, and ordering of classes to make it easy to configure filters, search queries, and the desired order for the results in HTTP requests. We used the Browsable API feature to test these new features included in our API.
We wrote the first round of unit tests and set the necessary configuration to use the popular and modern pytest Python unit test framework with Django REST Framework. Then, we wrote additional unit tests to improve test coverage. Finally, we understood many considerations for deployment and scalability in the cloud.
Now that we have built a complex API with Django REST Framework ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access