django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Add support for ViewSets
django-rest-framework-docs can't see ViewSet classes because they don't inherit from APIView.
It would be great to generate the doc from the methods marked with @link
and @action
my bad... it does work with Viewsets. However the docstring il pulled from the class and not from the method. So if you are using Viewsets you'll have the same text for all it's endpoints.
Hi - I haven't had the chance to look into this yet as I haven't typically used viewsets in my projects. You're right about the docstring coming for the class and not the method. This is something I've implemented in django-rest-swagger.
+1
+1
+1
+1
+1