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 and tested it, we will move to another popular Python Web framework, Pyramid, which is the topic of the next chapter.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.218.184.214