[Answered ]-How to show API description with django_rest_swagger 2.1.1

2👍

For current versions of Django Rest Framework Swagger, adding docstring comments seems to work (e.g., they show as descriptions in Swagger docs).


class MyExport(mixins.ListModelMixin, viewsets.GenericViewSet):
""" A really cool function"""

And “A really cool function” shows as the description in swagger view.

Leave a comment