Skip to content

Commit

Permalink
Merge pull request #54 from WaitherTeam/feature/#42
Browse files Browse the repository at this point in the history
📝 docs: api json 추가
  • Loading branch information
jinho7 authored May 17, 2024
2 parents 0259c13 + f5b5bdf commit fd21c96
Show file tree
Hide file tree
Showing 12 changed files with 1,271 additions and 74 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 fd21c96

Please sign in to comment.