In this chapter, we will expand the capabilities of the RESTful API that we started in the previous chapter. We will change the ORM settings to work with a more powerful PostgreSQL 10.5 database and we will take advantage of advanced features included in Django REST Framework (DRF) that allow us to reduce boilerplate code for complex APIs, such as class-based views. We will look at the following:
- Use model serializers to eliminate duplicate code
- Work with wrappers to write API views
- Use the default parsing and rendering options and move beyond JSON
- Browse the API
- Design a RESTful API to interact with a complex PostgreSQL 10.5 database
- Understand the tasks performed by each HTTP method
- Declare relationships with the models
- Install packages with the requirements file to work with PostgreSQL
- Configure the database...