django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Add support for ViewSets

Open pleasedontbelong opened this issue 11 years ago • 7 comments

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

pleasedontbelong avatar Jun 12 '13 09:06 pleasedontbelong

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.

pleasedontbelong avatar Jun 19 '13 10:06 pleasedontbelong

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.

marcgibbons avatar Jun 23 '13 14:06 marcgibbons

+1

shuoli84 avatar May 10 '14 08:05 shuoli84

+1

danielzohar avatar Jun 16 '14 20:06 danielzohar

+1

cdchen avatar Jul 05 '14 11:07 cdchen

+1

ruddra avatar Jan 31 '17 05:01 ruddra

+1

xiaolong2009 avatar Mar 23 '17 11:03 xiaolong2009