Skip to content

Commit

Permalink
CSSTUDIO-2026: add openapi/swagger. fix: upgrade maven-javadoc-plugin…
Browse files Browse the repository at this point in the history
… for MJAVADOC-650
  • Loading branch information
cjenkscybercom committed Jan 3, 2024
1 parent c87bfff commit 9daa470
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<elasticsearch.version>8.2.0</elasticsearch.version>
<lombok.version>1.18.16</lombok.version>
<junit.version>5.8.2</junit.version>
<springdoc.version>1.6.10</springdoc.version>
<skipITs>true</skipITs>
<skipITCoverage>true</skipITCoverage>
<jacoco.skip>true</jacoco.skip>
Expand Down Expand Up @@ -113,6 +114,18 @@
<version>2.0.1</version>
</dependency>

<!-- OpenAPI / Swagger UI -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>${springdoc.version}</version>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-security</artifactId>
<version>${springdoc.version}</version>
</dependency>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
Expand Down Expand Up @@ -363,7 +376,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.1.1</version>
<version>3.3.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9daa470

Please sign in to comment.