Skip to content

Commit

Permalink
fix: https 사용에 따른 swaggeㄱìr 설정팡리vkdl팡러ㅣㅏㅇë�설정파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
junseokkim committed Mar 4, 2024
1 parent dc0f20a commit cd53876
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.security.SecurityRequirement;
import io.swagger.v3.oas.models.security.SecurityScheme;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class SwaggerConfig {
@Bean
Expand All @@ -24,15 +27,16 @@ public OpenAPI openAPI() {
.type(SecurityScheme.Type.HTTP)
.scheme("Bearer"));

Server server = new Server();
server.setUrl("https://umcservice.shop");

return new OpenAPI()
.addSecurityItem(securityRequirement)
.components(components)
.info(apiInfo());

.info(apiInfo())
.servers(List.of(server));
}



private Info apiInfo() {
return new Info()
.title("UMC 네트워킹 서비스 API 명세서")
Expand Down

0 comments on commit cd53876

Please sign in to comment.