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

Need a version of DRF-docs that works with ProtectedResourceView

Open sheilatabuena opened this issue 9 years ago • 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?

sheilatabuena avatar Aug 17 '16 18:08 sheilatabuena

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?

StyXman avatar Oct 26 '16 10:10 StyXman