Django REST framework is a great package that gives you a head start on creating REST APIs, It makes developing the ideas into code faster and easier than ever. However, when you start customizing you’re app to fit your needs, things get trickier.
For instance, if you ever need an endpoint that produces and consumes nested instances of different models, Django-rest-framework requires you to write a logic on how to handle the data.
In this article, we are going to see how we can define a nested serializer.
#python #api #django-rest-framework #django #nest