Skip to content

Commit b386843

Browse files
authored
Merge branch 'main' into dev
2 parents a6dc518 + f070dcf commit b386843

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/main/java/org/ject/support/common/springdoc/SpringdocConfig.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,20 @@ public GroupedOpenApi adminApi() {
6363
.build()
6464
.addAllOperationCustomizer(List.of(successResponseCustomizer, errorResponseCustomizer));
6565
}
66+
67+
@Bean
68+
public GroupedOpenApi coreApi() {
69+
return GroupedOpenApi.builder()
70+
.group("Core API")
71+
.pathsToExclude("/admin/**")
72+
.build();
73+
}
74+
75+
@Bean
76+
public GroupedOpenApi adminApi() {
77+
return GroupedOpenApi.builder()
78+
.group("Admin API")
79+
.pathsToMatch("/admin/**")
80+
.build();
81+
}
6682
}

0 commit comments

Comments
 (0)