[DOCS] Swagger 명세 추가#9
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughSpringdoc OpenAPI UI 의존성 추가 및 OpenAPI 설정 클래스와 OperationCustomizer 도입; 컨트롤러·DTO에 Swagger 애노테이션 추가; OwnerController가 @userid로 ownerId를 주입받도록 엔드포인트 시그니처 변경; TestController를 Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Client
participant D as DispatcherServlet
participant R as UserIdArgumentResolver
participant OC as OwnerController
participant S as OwnerService
C->>D: HTTP 요청 /owners/bank-accounts...
activate D
D->>R: @UserId 해석 요청
R-->>D: ownerId (JWT에서 추출)
D->>OC: endpoint(ownerId, ...)
OC->>S: serviceCall(ownerId, ...)
S-->>OC: 결과
OC-->>D: BaseResponse
D-->>C: HTTP 응답
deactivate D
sequenceDiagram
autonumber
participant SD as SpringDoc
participant CFG as OpenApiConfig
participant OCZ as OperationCustomizer
participant CT as ControllerMethod
participant E as ExceptionDescription
participant SRD as SwaggerResponseDescription
participant OA as OpenAPI Model
SD->>CFG: OpenAPI 빈 초기화 (서버, 보안)
SD->>OCZ: 각 Operation에 커스터마이저 적용
OCZ->>CT: 애노테이션 검사
alt @ExceptionDescription 존재
CT-->>OCZ: ExceptionDescription 값
OCZ->>SRD: 매핑된 ErrorCode 집합 조회
SRD-->>OCZ: ErrorCode 리스트
OCZ->>OA: ApiResponses에 상태별 예시(Examples) 추가
else 없음
OCZ-->>SD: 변경 없음
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (15)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 15, 2025
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
closes #8
📝작업 내용
스웨거 명세 의존성을 추가했습니다.
상균님이 구현하신 사장님 계좌 관련 crud api도 제가 임의로 명세하긴 했는데 구체적인 api 설명에 관해서는 상균님이 덧붙여주시면 감사하겠습니다~
스크린샷 (선택)
💬리뷰 요구사항(선택)
Summary by CodeRabbit
신기능
개선
설정