Skip to content

Commit

Permalink
[#279] feat: 그룹별 API 경로 설정 추가 (#280)
Browse files Browse the repository at this point in the history
- `admin` 그룹: `/api/admin/**` 경로만 포함
- `general` 그룹: `/api/**` 경로 중 `/api/admin/**`를 제외한 나머지 경로 포함
- Swagger UI에서 `tags-sorter`, `operations-sorter`, `display-request-duration` 설정 추가
  • Loading branch information
hoonyworld authored Dec 2, 2024
1 parent 578ab06 commit e174d1b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e174d1b

Please sign in to comment.