-
Notifications
You must be signed in to change notification settings - Fork 0
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] #241 - Swagger 문서화 작업 #242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다 혜린님!!
전반적으로 swagger 문서 코드와 controller 코드가 잘 분리되어있는 것 같습니다.
다만 어떤 문서는 ApiRespones
가 명시되어 있지 않거나, 성공 ApiRespones
만 명시되어 있거나, content 옵션이 없거나 등 문서 컨벤션이 통일이 되어 있지 않습니다!!
그래서 다음과 같이 통일성 있게 스웨거 문서를 작성해주시면 감사하겠습니다.

ApiResponses
에 value 옵션으로 성공/실패ApiResponses
넣기 (해당 api 호출시 발생할 수 있는 예외는 모두 명시하기)- content 옵션 포함시키기
- content 옵션 명시할 때,
@Content(schema = @Schema(implementation = SuccessResponse.class)
,@Content(schema = @Schema(implementation = ErrorResponse.class)
모두 표시하기
private final static int COOKIE_MAX_AGE = 7 * 24 * 60 * 60; | ||
private final static String REFRESH_TOKEN = "refreshToken"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분 final static이 아닌 static final로 컨벤션 통일하는게 좋을 것 같습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리뷰를 반영해서 너무 꼼꼼하게 잘 해주셨네요!!
그런데, v1.1.1로 main에 배포하기에는 기능변화가 아무것도 존재하지 않는 작업이라 일단은 develop에만 배포하면 좋을 것 같습니다!
추후 기능이 추가되면 그 기능과 함께 main에 배포하면 될것같아요 고생하셨습니다~
Related issue 🛠
Work Description ✏️
booking, member, performance, schedule, ticket 관련 api의 swagger 문서화 작업을 진행했습니다.
HealthCheckController의 경우 작업이 단순하고 클라이언트와 상호작용하지 않기에 문서화하지 않았습니다.
Trouble Shooting ⚽️
Related ScreenShot 📷
Uncompleted Tasks 😅
To Reviewers 📢