How to specify a query parameter serializer in django-rest-swagger?
<p>I'm using Django REST Framework with django-rest-swagger to create browsable interface for my API. I can specify a request body serializer using <a href="http://django-rest-swagger.readthedocs.org/en/latest/yaml.html" rel="noreferrer">YAML docstring</a>, but I haven't found a way to specify a serializer for request query parameters. 
The view I am using is pretty like:</p>

<pre><code>class ListBans(BaseBanView):

    def get(self, request):
        """
        List all profile bans
        ---
        response_serializer: backend_serializers.BanSerializer
        request_serializer: moderator_serializers.ListBansSerializer
        """
        serializer = moderator_serializers.ListBansSerializer(data=request.query_params)
        if serializer.is_valid(raise_exception=True):
            # query profile bans
            data = []
            return APIResponse(status=status.HTTP_200_OK, data=data)

class ListBansSerializer(serializers.Serializer):
    limit = serializers.IntegerField(default=10, help_text='query limit')
    offset = serializers.IntegerField(default=0, help_text='query offset')
</code></pre>

<p>what I am trying to achieve is to make <code>django-rest-swagger</code> create form fields for query parameters from <code>ListBansSerializer</code> so that I wouldn't have  to specify the <code>parameters</code> section manually in the docstring. Is there a way to do that?</p>