Skip to content

Commit

Permalink
chore: swagger config grouped_open_api add_operation_customizer 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Aug 13, 2024
1 parent 9b83ee5 commit af63115
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public OpenAPI openAPI() {

return new OpenAPI()
.info(apiInfo(activeProfile))
.addServersItem(new io.swagger.v3.oas.models.servers.Server().url(""))
.addSecurityItem(securityRequirement)
.components(securitySchemes());
}
Expand All @@ -54,6 +53,7 @@ public GroupedOpenApi allApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("전체 보기")
.addOperationCustomizer(customizer())
.build();
}

Expand All @@ -64,6 +64,7 @@ public GroupedOpenApi authApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("사용자 인증")
.addOperationCustomizer(customizer())
.build();
}

Expand All @@ -74,6 +75,7 @@ public GroupedOpenApi userApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("사용자 기본 기능")
.addOperationCustomizer(customizer())
.build();
}

Expand All @@ -84,6 +86,7 @@ public GroupedOpenApi storageApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("정적 파일 저장")
.addOperationCustomizer(customizer())
.build();
}

Expand All @@ -94,6 +97,7 @@ public GroupedOpenApi ledgerApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("지출 관리")
.addOperationCustomizer(customizer())
.build();
}

Expand All @@ -104,6 +108,7 @@ public GroupedOpenApi backOfficeApi() {
return GroupedOpenApi.builder()
.packagesToScan(targets)
.group("백오피스")
.addOperationCustomizer(customizer())
.build();
}

Expand Down

0 comments on commit af63115

Please sign in to comment.