diff --git a/Match-Api/src/main/java/com/example/matchapi/config/SwaggerConfig.java b/Match-Api/src/main/java/com/example/matchapi/config/SwaggerConfig.java index 59f566fa..24e71a3a 100644 --- a/Match-Api/src/main/java/com/example/matchapi/config/SwaggerConfig.java +++ b/Match-Api/src/main/java/com/example/matchapi/config/SwaggerConfig.java @@ -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") @@ -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()