From 6230f50ebfbda6759be994f4bbe0995ff9259435 Mon Sep 17 00:00:00 2001 From: koomin1227 Date: Wed, 26 Jun 2024 09:52:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?M3-136=20Feat=20:=20=EC=8A=A4=EC=9B=A8?= =?UTF-8?q?=EA=B1=B0=20=EB=AC=B8=EC=84=9C=20=EC=97=B0=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 1 + src/main/resources/application.yml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 65866bba..2ce2930a 100644 --- a/build.gradle +++ b/build.gradle @@ -28,6 +28,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' 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 0dbcf687..327c7c7c 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 From 6dc1f8d48b8062829a55cdd5a2847e1bf67d2651 Mon Sep 17 00:00:00 2001 From: koomin1227 Date: Wed, 26 Jun 2024 09:59:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?M3-136=20Feat=20:=20prod=20=EB=AA=A8?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=EB=8A=94=20swagger=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=EA=B0=80=20=EC=83=9D=EC=84=B1=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 327c7c7c..79f133b4 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -46,7 +46,9 @@ spring: jpa: hibernate: ddl-auto: none - +springdoc: + api-docs: + enabled: false --- spring: