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

feat: add ability to disable just the swagger ui #155

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Conversation

dylanhitt
Copy link
Collaborator

per #154

We should provide a way to disable the UI and also not have the route register. I elected to keep with the DisableSwagger* vernacular. Which maybe we want to be more specific in the future, maybe a bit more thought out (my bad 😄).

Maybe a discussion over the interface is warranted, but for now 🤷

Cheers

@EwenQuim
Copy link
Member

EwenQuim commented Jul 25, 2024

Isn't it enough to do this ?

image

Or do you want to disable the UI and keep the JSON served?

@EwenQuim
Copy link
Member

EwenQuim commented Jul 25, 2024

Oops sorry for the force-push (for a typo), don't worry I'll handle it myself once we agree on what to do :)

@dylanhitt
Copy link
Collaborator Author

dylanhitt commented Jul 25, 2024

DisableSwagger disables the serving of both spec.json and the UI.

@EwenQuim EwenQuim merged commit fb7a7f1 into main Jul 25, 2024
4 checks passed
@EwenQuim EwenQuim deleted the feat/disableUI branch July 25, 2024 15:03
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

Successfully merging this pull request may close these issues.

2 participants