manosim/django-rest-framework-docs

Need a version of DRF-docs that works with ProtectedResourceView

sheilatabuena opened this issue · 1 comments

Currently DRF-docs (and other toolkits I could find) only work with APIView or subclasses. I have an application based on the Django REST Framework, but I am also using django-oauth-toolkit for authorization, which means all my views are based on ProtectedResourceView, which is not a subclass of APIView.

Are you aware of any self-documenting api tools that work with ProtectedResourceView, or do you have any plans to support this in the near future?

Checking the source code (for a completely different reason) I found that, for instance, ViewSets inherit from APIView, even when the methods thew expose are completely different (create vs. post, for instance). Maybe you can also inherit from them?