Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/Sundae-Gukbap/Banchango-AI
Browse files Browse the repository at this point in the history
… into Server/CD
  • Loading branch information
Due-IT committed Oct 2, 2024
2 parents b57141a + 5813e1b commit 86e54f1
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 86e54f1

Please sign in to comment.