Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc #75

Merged
merged 15 commits into from
Jan 4, 2024

Conversation

Gopistol
Copy link
Collaborator

@Gopistol Gopistol commented Dec 20, 2023

해당 PR이 어떤 것을 하나요?

  • OAS 3.0 을 지원하는 Springdoc를 사용하여 기존의 Swagger UI를 지원하는 라이브러리를 변경함
스크린샷 2024-01-04 오후 12 54 19

고민(선택)

기획 문서 혹은 태스크 관련 링크

@Gopistol Gopistol self-assigned this Dec 20, 2023
@github-actions github-actions bot added the refactor 코드 개선 label Dec 20, 2023
Copy link

codecov bot commented Dec 20, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b075bfe) 92.70% compared to head (4fc657c) 92.75%.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #75      +/-   ##
============================================
+ Coverage     92.70%   92.75%   +0.05%     
- Complexity      367      369       +2     
============================================
  Files            72       72              
  Lines           781      842      +61     
  Branches         23       23              
============================================
+ Hits            724      781      +57     
- Misses           43       47       +4     
  Partials         14       14              
Files Coverage Δ
...in/com/mjucow/eatda/common/config/SwaggerConfig.kt 100.00% <100.00%> (ø)
...n/kotlin/com/mjucow/eatda/common/vo/PhoneNumber.kt 100.00% <ø> (ø)
...rc/main/kotlin/com/mjucow/eatda/common/vo/Point.kt 100.00% <100.00%> (ø)
.../banner/service/command/dto/CreateBannerCommand.kt 87.50% <100.00%> (+7.50%) ⬆️
.../banner/service/command/dto/UpdateBannerCommand.kt 100.00% <100.00%> (ø)
...eatda/domain/banner/service/query/dto/BannerDto.kt 100.00% <100.00%> (ø)
.../notice/service/command/dto/UpdateNoticeCommand.kt 100.00% <100.00%> (ø)
...eatda/domain/notice/service/query/dto/NoticeDto.kt 100.00% <100.00%> (ø)
.../domain/store/service/command/dto/CreateCommand.kt 100.00% <100.00%> (ø)
...ain/store/service/command/dto/MenuCreateCommand.kt 100.00% <100.00%> (ø)
... and 14 more

@dojinyou
Copy link
Member

ktlint-check 통과를 못할 때 ktlintFormat gradle task 실행하기

./gradlew ktlintFormat

@Gopistol Gopistol changed the title [refactor] Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc Dec 20, 2023
src/main/resources/static/swagger-ui/openapi3.yaml Outdated Show resolved Hide resolved
@RequestParam("storeId", required = false) storeId: Long?,
@RequestParam("categoryId", required = false) categoryId: Long?,
@RequestParam("size", required = false) pageSize: Int = 20,
Copy link
Member

@dojinyou dojinyou Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default값 잘 들어가는지 체크해보기

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

하위 클래스에선 매개변수의 default value를 정의할 수 없다는 규칙이 있다고해서 저 pageSize라는 변수를 companion object로 분리하는 방안은 어떤가요..?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

interface에서 default value가 들어간 것 같아서 동작 체크만 해보면 될 것 같아요!

build.gradle.kts Outdated Show resolved Hide resolved
src/main/resources/application.yml Outdated Show resolved Hide resolved
@dojinyou
Copy link
Member

작업 끝난 뒤에 주석된 코드들은 지워주세요!

@dojinyou
Copy link
Member

PR에 정상적으로 swagger가 생성된 모습 캡쳐해서 올려주면 좋을 것 같아요!

@Gopistol Gopistol requested a review from dojinyou January 3, 2024 13:38
@Gopistol Gopistol requested a review from dojinyou January 3, 2024 15:03
Copy link
Member

@dojinyou dojinyou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

기본값만 체크하고 merge 하시죵

@Gopistol Gopistol merged commit 80b9db1 into main Jan 4, 2024
5 checks passed
@Gopistol Gopistol deleted the swagger branch January 4, 2024 03:55
k-kbk added a commit that referenced this pull request Jan 4, 2024
* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

---------

Co-authored-by: 유도진 <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
k-kbk added a commit that referenced this pull request Jan 4, 2024
* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

---------

Co-authored-by: 유도진 <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
dojinyou added a commit that referenced this pull request Jan 14, 2024
* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

* swagger 수정 (#83)

* [fix] redis 분리 및 api 추가 (#85)

---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>
dojinyou added a commit that referenced this pull request Mar 3, 2024
* v0.1.8-Release (#82)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

---------

Co-authored-by: 유도진 <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>

* V0.1.9 (#86)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

* swagger 수정 (#83)

* [fix] redis 분리 및 api 추가 (#85)

---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>

---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>
dojinyou added a commit that referenced this pull request Mar 3, 2024
* v0.1.8-Release (#82)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml



* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------



* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

---------





* V0.1.9 (#86)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml



* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------



* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

* swagger 수정 (#83)

* [fix] redis 분리 및 api 추가 (#85)

---------






---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>
dojinyou added a commit that referenced this pull request Mar 3, 2024
* v0.1.8-Release (#82)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

---------

Co-authored-by: 유도진 <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>

* V0.1.9 (#86)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml

Co-authored-by: 유도진 <[email protected]>

* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------

Co-authored-by: 유도진 <[email protected]>

* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

* swagger 수정 (#83)

* [fix] redis 분리 및 api 추가 (#85)

---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>

* v.0.1.10 (#92)

* v0.1.8-Release (#82)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml



* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------



* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

---------





* V0.1.9 (#86)

* [etc] logger 추가 및 Exception logging 추가 (#71)

* [etc] CODEOWNERS 수정 (#72)

* Spring boot version 3.1.2 -> 3.1.6 (#73)

* [refactor]cursor 기반 page 타입 변경 (#74)

* [refactor] Swagger UI 라이브러리 변경: Spring REST docs -> Springdoc (#75)

* Swagger UI 라이브러리 변경 - Spring REST docs -> Springdoc

* 컨트롤러 인터페이스 분리

* Update src/main/resources/static/swagger-ui/openapi3.yaml



* build.gradle 의존성 제거

* 인터페이스 이름 변경: ApiPresentation 추가

* 커버리지 체크 제외할 리스트 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix 수정

* postfix수정

* REST doc 관련 의존성 및 파일 삭제

* 변경 사항 반영

* 리뷰 반영해서 수정

* 초깃값 동작 체크

---------



* [etc] version 수정 (#77)

* [etc] storeId → cursor 수정 (#79)

* [etc] version 수정 (#80)

* swagger 수정 (#83)

* [fix] redis 분리 및 api 추가 (#85)

---------






---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>

* v0.1.11 (#94)

---------

Co-authored-by: Bokyeom <[email protected]>
Co-authored-by: YOON <[email protected]>
Co-authored-by: Gopistol <[email protected]>
Co-authored-by: k-kbk <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants