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

Support Admin-only Swagger Docs #115

Open
sshah-asymmetrik opened this issue Mar 24, 2021 · 1 comment
Open

Support Admin-only Swagger Docs #115

sshah-asymmetrik opened this issue Mar 24, 2021 · 1 comment

Comments

@sshah-asymmetrik
Copy link
Contributor

We have some API endpoints that are only for Admin users. It would be nice to be able to hide the Swagger docs of those endpoints from non-Admin users. This came up along with some potential solutions in this discussion (#114 (comment)).

Acceptance Criteria

  • Determine if filtering by tags, extending/customizing the Swagger UI, or some other option is a viable solution
  • If so, make necessary updates enable hiding admin-only endpoints from non-admin users
  • If not feasible/reasonable/possible, mention why and close issue.
@jrassa
Copy link
Member

jrassa commented Mar 24, 2021

If possible, solution should support/account for other user roles as well. Here we also have the auditor role and downstream projects may add additional user roles.

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