File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/main/kotlin/me/misik/api/infra Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ dependencies {
8
8
implementation " org.springframework.boot:spring-boot-starter-webflux"
9
9
implementation " org.springframework.boot:spring-boot-starter-data-jpa"
10
10
implementation ' org.springframework.retry:spring-retry'
11
+ implementation ' org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
11
12
12
13
testImplementation " org.springframework.boot:spring-boot-starter-test"
13
14
}
Original file line number Diff line number Diff line change
1
+ package me.misik.api.infra
2
+
3
+ import io.swagger.v3.oas.models.OpenAPI
4
+ import io.swagger.v3.oas.models.info.Info
5
+ import org.springframework.context.annotation.Bean
6
+ import org.springframework.context.annotation.Configuration
7
+
8
+ @Configuration
9
+ class SwaggerConfig {
10
+
11
+ @Bean
12
+ fun customOpenAPI (): OpenAPI {
13
+ return OpenAPI ()
14
+ .info(
15
+ Info ().title(" Misik API" )
16
+ .version(" 1.0" )
17
+ .description(" Misik API Description" ))
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments