[Answered ]-GET Method Not Allowed: /api/banners in django rest framework

1👍

No, because ListAPIView defines get method

From source

class ListAPIView(mixins.ListModelMixin,
                  GenericAPIView):
    """
    Concrete view for listing a queryset.
    """
    def get(self, request, *args, **kwargs):
        return self.list(request, *args, **kwargs)

You could do the same, but it would be obvious case of reinventing the wheel

Leave a comment