From 08a5c659673ee1533f30ac5828d44ff42e19e4dc Mon Sep 17 00:00:00 2001 From: ScarletRedMan Date: Wed, 14 Feb 2024 19:21:27 +0700 Subject: [PATCH] Added SpringDoc --- app/build.gradle | 1 + app/src/main/resources/application.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index f4baa32..99cb237 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -16,6 +16,7 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-security' implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-actuator' + implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.3.0' runtimeOnly 'io.micrometer:micrometer-registry-prometheus' diff --git a/app/src/main/resources/application.yml b/app/src/main/resources/application.yml index 7edab2e..88f2b78 100644 --- a/app/src/main/resources/application.yml +++ b/app/src/main/resources/application.yml @@ -8,3 +8,7 @@ management: metrics: export: enabled: true + +springdoc: + api-docs: + path: /api-docs