def get(self, request):
    """
        List all profile bans
        ---
        response_serializer: backend_serializers.BanSerializer
        """
serializer = moderator_serializers.ListBansSerializer(data=request.query_params
    )
if serializer.is_valid(raise_exception=True):
    data = []
return APIResponse(status=status.HTTP_200_OK, data=data)
How to specify a query parameter serializer in django-rest-swagger?