Skip to content

Commit

Permalink
♻️ : admin v2 api swagger 그룹화
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Jan 22, 2024
1 parent f4a228e commit 89b0617
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public GroupedOpenApi v2ApiDocs() {
@Bean
public GroupedOpenApi adminApiDocs(){
String[] paths = { "/admin/**" };
String[] excludesPath = {"/admin/v2/**"};


return GroupedOpenApi.builder()
.group("Docs for ADMIN API")
Expand All @@ -80,6 +82,17 @@ public GroupedOpenApi adminApiDocs(){
.build();
}

@Bean
public GroupedOpenApi adminV2ApiDocs(){
String[] paths = { "/admin/v2/**" };

return GroupedOpenApi.builder()
.group("Docs for ADMIN V2 API")
.pathsToMatch(paths)
.addOperationCustomizer(customize())
.build();
}

@Bean
public OpenAPI openAPI() {
Info info = new Info()
Expand Down

0 comments on commit 89b0617

Please sign in to comment.