From ec1095030847a7b3550a8e3d724f5ca32d73621a Mon Sep 17 00:00:00 2001 From: Avgustin Marinov Date: Tue, 6 Feb 2024 17:40:31 +0200 Subject: [PATCH] Swagger: little config cleanup (#1617) Signed-off-by: Marinov Avgustin --- .../src/main/resources/application.properties | 5 +---- .../src/main/resources/application.properties | 5 +---- .../src/main/resources/application.properties | 5 +---- site/src/main/resources/application.properties | 6 +----- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/hawkbit-runtime/hawkbit-ddi-server/src/main/resources/application.properties b/hawkbit-runtime/hawkbit-ddi-server/src/main/resources/application.properties index 6cf0e72fe..8014fa3f5 100644 --- a/hawkbit-runtime/hawkbit-ddi-server/src/main/resources/application.properties +++ b/hawkbit-runtime/hawkbit-ddi-server/src/main/resources/application.properties @@ -41,13 +41,10 @@ spring.rabbitmq.port=5672 #hawkbit.server.security.cors.allowedOrigins=http://localhost # Swagger Configuration -#springdoc.swagger-ui.path=/update-server-documentation -#springdoc.api-docs.path=/update-server-api-docs -springdoc.show-oauth2-endpoints=true springdoc.api-docs.version=openapi_3_0 +springdoc.show-oauth2-endpoints=true springdoc.show-login-endpoint=true springdoc.packages-to-scan=org.eclipse.hawkbit.ddi -springdoc.swagger-ui.oauth2RedirectUrl=/login/oauth2/code/suite springdoc.paths-to-exclude=/system/** # Flyway disabled - US only diff --git a/hawkbit-runtime/hawkbit-mgmt-server/src/main/resources/application.properties b/hawkbit-runtime/hawkbit-mgmt-server/src/main/resources/application.properties index 61101a00e..0edce0d7f 100644 --- a/hawkbit-runtime/hawkbit-mgmt-server/src/main/resources/application.properties +++ b/hawkbit-runtime/hawkbit-mgmt-server/src/main/resources/application.properties @@ -49,13 +49,10 @@ hawkbit.server.swagger.mgmt.api.group.enabled=true hawkbit.server.swagger.ddi.api.group.enabled=false # Swagger Configuration -#springdoc.swagger-ui.path=/update-server-documentation -#springdoc.api-docs.path=/update-server-api-docs -springdoc.show-oauth2-endpoints=true springdoc.api-docs.version=openapi_3_0 +springdoc.show-oauth2-endpoints=true springdoc.show-login-endpoint=true springdoc.packages-to-scan=org.eclipse.hawkbit.mgmt -springdoc.swagger-ui.oauth2RedirectUrl=/login/oauth2/code/suite springdoc.paths-to-exclude=/system/** # Disable discovery client of spring-cloud-commons diff --git a/hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties b/hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties index ec44c4f18..1b01e0814 100644 --- a/hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties +++ b/hawkbit-runtime/hawkbit-update-server/src/main/resources/application.properties @@ -47,11 +47,8 @@ spring.rabbitmq.port=5672 #hawkbit.server.security.cors.allowedOrigins=http://localhost # Swagger Configuration -#springdoc.swagger-ui.path=/update-server-documentation -#springdoc.api-docs.path=/update-server-api-docs -springdoc.show-oauth2-endpoints=true springdoc.api-docs.version=openapi_3_0 +springdoc.show-oauth2-endpoints=true springdoc.show-login-endpoint=true springdoc.packages-to-scan=org.eclipse.hawkbit.mgmt,org.eclipse.hawkbit.ddi -springdoc.swagger-ui.oauth2RedirectUrl=/login/oauth2/code/suite springdoc.paths-to-exclude=/system/** \ No newline at end of file diff --git a/site/src/main/resources/application.properties b/site/src/main/resources/application.properties index be7b5d3b1..dd196dba5 100644 --- a/site/src/main/resources/application.properties +++ b/site/src/main/resources/application.properties @@ -30,12 +30,8 @@ hawkbit.server.repository.publish-target-poll-event=false hawkbit.dmf.rabbitmq.enabled=false # Swagger Configuration - -#springdoc.swagger-ui.path=/update-server-documentation -#springdoc.api-docs.path=/update-server-api-docs -springdoc.show-oauth2-endpoints=true springdoc.api-docs.version=openapi_3_0 +springdoc.show-oauth2-endpoints=true springdoc.show-login-endpoint=true springdoc.packages-to-scan=org.eclipse.hawkbit.mgmt,org.eclipse.hawkbit.ddi -springdoc.swagger-ui.oauth2RedirectUrl=/login/oauth2/code/suite springdoc.paths-to-exclude=/system/** \ No newline at end of file