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

disable swagger route until authorization #599

Open
noorkham opened this issue Oct 24, 2023 · 3 comments
Open

disable swagger route until authorization #599

noorkham opened this issue Oct 24, 2023 · 3 comments

Comments

@noorkham
Copy link

i have a swagger that is private for my customer
when the swagger page is opening and all the routes appear to customer , i want to disable all the routes models until the authorization
i have an authorization method in the swagger , so when the customer is authorized
then he can see the route model , requested params and requested json
i am using python
is there any way to do it ?
thanks
Screenshot 2023-10-24 at 16 26 46

@daliaMarzouk90
Copy link

Swagger is a tool for documentation for the apis not a user interface. You generate it to list the exposed apis and its specs.
So to my knowledge I do not know if this feature available. Once you included it in the swag there is no condition to show routes or hide them

@OneCricketeer
Copy link

@DaniloMurbach
Copy link

I believe this could be closed now right ?

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

4 participants