marcgibbons / django-rest-framework-docs

An inventory tool for Django Rest Framework v2 API endpoints
BSD 2-Clause "Simplified" License
95 stars 34 forks source link

Add support for ViewSets #17

Open pleasedontbelong opened 11 years ago

pleasedontbelong commented 11 years ago

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 commented 11 years ago

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.

marcgibbons commented 11 years ago

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.

shuoli84 commented 10 years ago

+1

danielzohar commented 10 years ago

+1

cdchen commented 10 years ago

+1

ruddra commented 7 years ago

+1

xiaolong2009 commented 7 years ago

+1