Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a version of DRF-docs that works with ProtectedResourceView #130

Open
sheilatabuena opened this issue Aug 17, 2016 · 1 comment
Open

Comments

@sheilatabuena
Copy link

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?

@StyXman
Copy link
Contributor

StyXman commented Oct 26, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants