class ArticleViewSet(viewsets.ModelViewSet):
    """
    Articles.
    ---
    list:    
        parameters:
            - name: name
              description: article title
    get_price:
        omit_serializer: true
    """

@list_route(methods=['get'])
def get_price(self, request):
    pass
How to show query parameter options in Django REST Framework - Swagger