Skip to content

Commit

Permalink
๐Ÿš€ Merge pull request #6 from local-mood/feat/5-swagger
Browse files Browse the repository at this point in the history
Feat: Swagger ์„ค์ •
  • Loading branch information
gmkim20713 authored Dec 12, 2023
2 parents 1a2d776 + c361f04 commit 2e81753
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
25 changes: 25 additions & 0 deletions src/main/java/com/ceos/vote/common/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.ceos.vote.common.config;

import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {
return new OpenAPI()
.components(new Components())
.info(apiInfo());
}

private Info apiInfo() {
return new Info()
.title("ceos-vote-api")
.description("CEOS ํŒŒํŠธ์žฅโˆ™ํŒ€ ํˆฌํ‘œ ์„œ๋น„์Šค")
.version("1.0.0");
}
}
11 changes: 4 additions & 7 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ server:
enabled: true
force: true
port: 8080
#
#springdoc:
# version: v1.0.0
# swagger-ui:
# path: /swagger-filmo.html
# tagsSorter: alpha
# operationsSorter: alpha

springdoc:
swagger-ui:
path: /swagger-vote.html

0 comments on commit 2e81753

Please sign in to comment.