From e174d1b9e1a881f87c35d868fb1665f35acce0a2 Mon Sep 17 00:00:00 2001 From: DongHoon Lee <125895298+hoonyworld@users.noreply.github.com> Date: Tue, 3 Dec 2024 01:47:49 +0900 Subject: [PATCH] =?UTF-8?q?[#279]=20feat:=20=EA=B7=B8=EB=A3=B9=EB=B3=84=20?= =?UTF-8?q?API=20=EA=B2=BD=EB=A1=9C=20=EC=84=A4=EC=A0=95=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20(#280)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - `admin` 그룹: `/api/admin/**` 경로만 포함 - `general` 그룹: `/api/**` 경로 중 `/api/admin/**`를 제외한 나머지 경로 포함 - Swagger UI에서 `tags-sorter`, `operations-sorter`, `display-request-duration` 설정 추가 --- src/main/resources/application-dev.yml | 12 ++++++++++++ src/main/resources/application-prod.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 07bfc11..bbf1bb1 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -84,3 +84,15 @@ app: springdoc: use-fqn: false + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + group-configs: + - group: admin + paths-to-match: /api/admin/** + - group: general + paths-to-match: /** + paths-to-exclude: /api/admin/** + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + display-request-duration: true diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 2dcde04..0a57539 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -84,3 +84,15 @@ app: springdoc: use-fqn: false + default-consumes-media-type: application/json;charset=UTF-8 + default-produces-media-type: application/json;charset=UTF-8 + group-configs: + - group: admin + paths-to-match: /api/admin/** + - group: general + paths-to-match: /** + paths-to-exclude: /api/admin/** + swagger-ui: + tags-sorter: alpha + operations-sorter: alpha + display-request-duration: true