Overview: Social Media Post Management

Get an overview of the topics covered in this chapter.

We'll cover the following

Previously, we introduced models, serializers, viewsets, and routes to create our first endpoints. In this chapter, we will be working with the same concepts for creating posts for our social media project. This will be done by dividing the project into concepts such as database relations, filtering, and permissions.

By the end of this chapter, you’ll be able to work with database relations with Django models, write custom filters and permissions, and delete and update objects.

Topics covered in this chapter

We will be covering the following topics in this chapter:

  • Creating the Post model

  • Writing the Post model

  • Writing the Post serializer

  • Writing Post viewsets

  • Adding permissions

  • Deleting and updating posts

  • Adding the Like feature

Note: The Post discussed in this section is a social media post. It is different from the POST request used in web development to send data to a server.

Get hands-on with 1400+ tech skills courses.