diff --git a/Server/banchango/src/main/java/com/sundaegukbap/banchango/config/SwaggerConfig.java b/Server/banchango/src/main/java/com/sundaegukbap/banchango/config/SwaggerConfig.java new file mode 100644 index 0000000..48c4f00 --- /dev/null +++ b/Server/banchango/src/main/java/com/sundaegukbap/banchango/config/SwaggerConfig.java @@ -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)); + } + +}