From 9daa47033003e80e5f40bc1ee52e45b8db66881f Mon Sep 17 00:00:00 2001 From: cjenkscybercom Date: Wed, 3 Jan 2024 09:46:39 +0100 Subject: [PATCH] CSSTUDIO-2026: add openapi/swagger. fix: upgrade maven-javadoc-plugin for MJAVADOC-650 --- pom.xml | 15 ++++++++++++++- src/main/resources/application.properties | 7 +++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 415af56..6a81661 100644 --- a/pom.xml +++ b/pom.xml @@ -56,6 +56,7 @@ 8.2.0 1.18.16 5.8.2 + 1.6.10 true true true @@ -113,6 +114,18 @@ 2.0.1 + + + org.springdoc + springdoc-openapi-ui + ${springdoc.version} + + + org.springdoc + springdoc-openapi-security + ${springdoc.version} + + org.springframework spring-test @@ -363,7 +376,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.1.1 + 3.3.0 attach-javadocs diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 0999452..29f2116 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -183,3 +183,10 @@ default.logbook.url= default.tags.url= default.properties.url= +########### OpenAPI / Swagger ############# +#OPENAPI +openapi.server=${OPENAPI_SERVER:http://localhost:8080} +springdoc.api-docs.path=${API_PATH:/api/spec} +springdoc.swagger-ui.path=${SWAGGER_PATH:/api/docs} +springdoc.swagger-ui.disable-swagger-default-url=true +springdoc.swagger-ui.displayOperationId=true