Skip to content

Commit

Permalink
📝docs : API 명세서 환경 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
jinho7 committed May 12, 2024
1 parent 7c48fa8 commit f5b5bdf
Show file tree
Hide file tree
Showing 4 changed files with 1,177 additions and 4 deletions.
16 changes: 14 additions & 2 deletions user-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.springframework.boot' version '3.2.3'
id 'io.spring.dependency-management' version '1.1.4'
id "org.springdoc.openapi-gradle-plugin" version '1.8.0'
}

group = 'com.waither'
Expand Down Expand Up @@ -76,8 +77,8 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

// Swagger
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.4'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.0.4'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.1.0'


}
Expand All @@ -88,6 +89,17 @@ dependencyManagement {
}
}

openApi {
apiDocsUrl.set("http://localhost:3000") // Document URL
outputDir.set(file("$rootDir/docs")) // Build Result Path
outputFileName.set("user.json") // Build Result File Name
groupedApiMappings.set(Map.of("http://localhost:8080/user/api-docs", "user.json"))
waitTimeInSeconds.set(60) // Timeout
customBootRun {
args.add("--spring.profiles.active=dev")
}
}

tasks.named('test') {
useJUnitPlatform()
}
Loading

0 comments on commit f5b5bdf

Please sign in to comment.