Skip to content

Commit

Permalink
Feat : Swagger Https환경을 설정합니다. (#34)
Browse files Browse the repository at this point in the history
* Chore : .gitignore

* Feat : Swagger Config 구현

* Feat : Swagger interface 로 분리

* Feat : build.gradle 변경

* Feat : Swagger 경로 추가 및 기존 테스트 제거

* Faet : 표기 방식 설정

* Feat : Swagger Config 수정
  • Loading branch information
hyunw9 authored Jul 8, 2024
1 parent 93557a7 commit 73bbdd5
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
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 java.util.List;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

Expand All @@ -21,8 +24,13 @@ public OpenAPI customOpenAPI(){
.scheme("bearer")
.bearerFormat("JWT")
);

Server server = new Server();
server.setUrl("https://clody.store");

return new OpenAPI()
.components(new Components())
.servers(List.of(server))
.info(apiInfo());
}

Expand Down

0 comments on commit 73bbdd5

Please sign in to comment.