flasgger / flasgger/flasgger

Using decorator to restrict certain specs if unauthorized

Open
#339 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.7k
Forks
525
PR merge metrics
No merged PRs in 30d

Description

Hello,
I'm working with the basic_auth example. It works to disable _ALL_ specs if auth fails. I need to hide some specs, and still show other (public) specs. In other words, only _some_ of the specs should be hidden if request is unauthorized. Most likely using the path or 'endpoint' variable to differentiate.

I'm using flask-restful 0.3.6

Any ideas on how to go about this?

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.