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.
Source:stackexchange.com