Skip to content

Commit

Permalink
feat : swagger에 https 설정 추가 (#55)
Browse files Browse the repository at this point in the history
feat : https 설정 추가
  • Loading branch information
Due-IT authored Oct 2, 2024
1 parent 8d9f657 commit 5813e1b
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.sundaegukbap.banchango.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
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
public OpenAPI openAPI() {
Info info = new Info()
.version("1.0")
.title("반찬고 AI")
.description("설명");

Server server = new Server();
server.setUrl("https://backendu.com");

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

}

0 comments on commit 5813e1b

Please sign in to comment.