Getting duplicate entry for Django API URL in swagger when using drf_yasg

  Kiến thức lập trình

I am getting duplicate entry in swagger when I have two API view(ListApiView, UpdateAPIView) in single class using Django rest framework

So, I have added two urls and one is for GET, POST and other url for PUT with that, I should get only 3 rows in swagger but it shows three entries for each url and I have attached the screenshot here of my url and swagger.

Following is my url pattern

This is how my class is defined

class EscalatedStatusListView(ListAPIView, UpdateAPIView):

Theme wordpress giá rẻ Theme wordpress giá rẻ Thiết kế website

LEAVE A COMMENT