In this chapter, we will use additional features included in Django 2.1 and Django REST Framework to improve our RESTful API. We will also write, execute, and improve unit tests and learn a few things related to deployment. We will look at the following:
- Install packages with the
requirements.txt
file to work with filters, throttling, and tests - Understand filtering, searching, and ordering classes
- Configure filtering, searching, and ordering for views
- Execute HTTP requests to test filtering, searching, and ordering features
- Filter, search, and order in the Browsable API
- Understand throttling classes and goals
- Configure throttling policies
- Execute HTTP requests to test throttle policies
- Setting up unit tests with
pytest
- Write the first round of unit tests
- Run unit tests with
pytest
- Improve testing coverage
- Run Django RESTful APIs on the cloud