-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow disabling the Swagger/GraphQL/Health/OpenAPI UIs at Runtime #13016
Conversation
...ployment/src/main/java/io/quarkus/smallrye/graphql/deployment/FinalDestinationBuildItem.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some suggestions/ideas.
Read all of them first as I'm contradicting myself.
...ployment/src/main/java/io/quarkus/smallrye/graphql/deployment/FinalDestinationBuildItem.java
Outdated
Show resolved
Hide resolved
.../runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLRuntimeConfig.java
Outdated
Show resolved
Hide resolved
...ons/swagger-ui/deployment/src/main/java/io/quarkus/swaggerui/deployment/SwaggerUiConfig.java
Outdated
Show resolved
Hide resolved
@gastaldi @gsmet @machi1990 Thanks for the review. I made the changes as requested. The enable flag is now a runtime config. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some questions and suggestions inline. Happy to discuss it on Zulip!
...eployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java
Outdated
Show resolved
Hide resolved
...eployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java
Outdated
Show resolved
Hide resolved
...eployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLProcessor.java
Outdated
Show resolved
Hide resolved
...deployment/src/main/java/io/quarkus/smallrye/graphql/deployment/SmallRyeGraphQLUIConfig.java
Outdated
Show resolved
Hide resolved
...aphql/runtime/src/main/java/io/quarkus/smallrye/graphql/runtime/SmallRyeGraphQLRecorder.java
Outdated
Show resolved
Hide resolved
...h/deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthUIConfig.java
Outdated
Show resolved
Hide resolved
...ons/swagger-ui/deployment/src/main/java/io/quarkus/swaggerui/deployment/SwaggerUiConfig.java
Outdated
Show resolved
Hide resolved
...ns/swagger-ui/runtime/src/main/java/io/quarkus/swaggerui/runtime/SwaggerUiRuntimeConfig.java
Outdated
Show resolved
Hide resolved
.../deployment/src/main/java/io/quarkus/smallrye/health/deployment/SmallRyeHealthProcessor.java
Show resolved
Hide resolved
...eployment/src/main/java/io/quarkus/smallrye/openapi/deployment/SmallRyeOpenApiProcessor.java
Outdated
Show resolved
Hide resolved
@gsmet - I made all changes (except |
Signed-off-by: Phillip Kruger <[email protected]>
@phillip-kruger thanks! |
Fix #12942
This PR adds a Runtime config option to deactivate the
As a example, if you build a REST Application with Swagger UI and you do a
quarkus.swagger-ui.always-include=true
, meaning that the UI will be included in the jar artefact, you can still disable the ui by starting the app:java -jar -Dquarkus.swagger-ui.enable=false target/yourapp-1.0.0-SNAPSHOT-runner.jar
Signed-off-by:Phillip Kruger [email protected]