diff --git a/build.gradle b/build.gradle index de99b23..83125f2 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' compileOnly 'org.projectlombok:lombok' runtimeOnly 'com.h2database:h2' annotationProcessor 'org.projectlombok:lombok' diff --git a/src/main/java/com/j9/bestmoments/config/SwaggerConfig.java b/src/main/java/com/j9/bestmoments/config/SwaggerConfig.java new file mode 100644 index 0000000..b2d454e --- /dev/null +++ b/src/main/java/com/j9/bestmoments/config/SwaggerConfig.java @@ -0,0 +1,17 @@ +package com.j9.bestmoments.config; + +import io.swagger.v3.oas.annotations.OpenAPIDefinition; +import io.swagger.v3.oas.annotations.info.Info; +import org.springframework.context.annotation.Configuration; + +@OpenAPIDefinition( + info = @Info( + title = "BestMoments API 명세서", + description = "", + version = "v1" + ) +) +@Configuration +public class SwaggerConfig { + +} \ No newline at end of file