manosim / django-rest-framework-docs

Document Web APIs made with Django Rest Framework
https://www.drfdocs.com/
BSD 2-Clause "Simplified" License
647 stars 184 forks source link

Add permissions #151

Open AndreasBackx opened 7 years ago

AndreasBackx commented 7 years ago

It would be great if we could hide the API behind a login that only allows superusers to login. I'm up for creating a PR. This functionality could be enabled via the settings:

REST_FRAMEWORK_DOCS = {
    'PERMISSIONS_REQUIRED': True  # Set the default to True perhaps?
}

What do you think?

ekohalsti commented 7 years ago

Would it not be the most intuitive solution for DRFDOCS to adhere to default permissions of DRF?