If we are building an API layer using the Django REST framework and accessing these…