[CHORE] REST Docs 기반 OpenAPI 생성 환경 구축 - #593
Merged
Merged
Conversation
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.
Related Issue
Key Changes
build/아래에서 재생성하며, 로그아웃의 성공·오류 응답과 Deprecated 개발용 로그인 API를 실제 Controller 요청으로 문서화합니다. (7965951e)AUTH-001 ErrorResultJSON을 반환하도록 인증 실패 응답을 통일했습니다. 실제 Security filter chain을 사용하는 Controller 테스트로 누락·비-Bearer·변조·토큰 유형 오류를 검증합니다. (9deaa1b4)clean apiDocs build -x test로 변경했습니다. 생성 명세가 포함된 bootJar가 Docker 이미지에 들어갑니다. (c7ede183)auth/controller/auth패키지 아래 API별PostAuthLogoutDocsTest,PostUserIdLoginDocsTest클래스로 분리했습니다. 클래스명은 HTTP Method와 API 의미가 드러나도록 구성했습니다. (85fa49d0)To Reviewers
servers.url: /와./openapi3.json을 사용하므로 Blue-Green의 8080/8081 포트나 localhost를 하드코딩하지 않습니다. 기존 설정대로 dev에서는 활성화되고 prod에서는 비활성화됩니다.src/test/resources/swagger-ui/openapi3.json은 생성 산출물이 아니라 Swagger 리소스 핸들러 테스트가 독립 실행될 때 사용하는 최소 fixture입니다. 실제 생성 명세는build/api-docs-resources/swagger-ui/openapi3.json이며 Git으로 추적하지 않습니다.deploy.sh, 프로필별 yml은 변경하지 않았습니다.References