class ListBansSerializer(serializers.Serializer):
    limit = serializers.IntegerField(default=10, help_text='query limit')
offset = serializers.IntegerField(default=0, help_text='query offset')


class ListBans(BaseBanView):
    pass
How to specify a query parameter serializer in django-rest-swagger?