Skip to content

Commit

Permalink
added actuator as group
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Apr 18, 2020
1 parent ff8d6b3 commit aa6bcf1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions springdoc-openapi-test-app2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- springdoc ui -->
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public GroupedOpenApi storeOpenApi() {
.build();
}

@Bean
public GroupedOpenApi actuatorApi() {
return GroupedOpenApi.builder().setGroup("Actuator")
.pathsToMatch("/actuator/**")
.build();
}

@Bean
public OpenAPI customOpenAPI(@Value("${springdoc.version}") String appVersion) {
return new OpenAPI()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ springdoc:
path: /swagger-ui.html
display-request-duration: true
groups-order: DESC
version: '@springdoc.version@'
version: '@springdoc.version@'
show-actuator: true

0 comments on commit aa6bcf1

Please sign in to comment.