In the first part, you'll learn the basics of Django REST Framework, like serializers, views, and routers. You'll also look at how to manually test your API as well as use pytest to write automated tests. At the end of the first part, you'll see how to consume your API from a web client.
Learning Objectives
- Configure Django REST Framework views, serializers, and routers
- Add custom actions to a ViewSet
- Create custom serializers
- Use Postman to manually test your API
- Write automated tests with pytest
- Consume an API from a web client
In part 2, you'll work on improving your API. We'll add ordering, validation, pagination, and a search endpoint. We'll also add access control to the API and provide documentation. We'll switch from a write-code-first approach to Test-driven Development. At the end of this part, you'll use Docker to deploy your API to Heroku.
Learning Objectives
- Use out-of-the-box and custom permissions
- Practice Test-driven Development
- Configure and customize pagination
- Set up authentication, ordering, and filtering
- Generate documentation with drf-spectacular
- Dockerize a Django application
- Deploy a Dockerized Django application to Heroku