diff --git a/build.gradle b/build.gradle index c977b087..7e33d4bd 100644 --- a/build.gradle +++ b/build.gradle @@ -29,8 +29,8 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0' implementation group: 'org.hibernate', name: 'hibernate-spatial', version: '6.4.2.Final' - compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' runtimeOnly 'com.mysql:mysql-connector-j' diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c6289352..ebd89f46 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,6 +1,12 @@ server: port: 8080 +springdoc: + swagger-ui: + path: /api/usage + api-docs: + path: /api/usage + spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver @@ -41,7 +47,9 @@ spring: jpa: hibernate: ddl-auto: none - +springdoc: + api-docs: + enabled: false --- spring: