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

♻️ change version of user comment list #433

Merged
merged 2 commits into from
Dec 13, 2024
Merged

♻️ change version of user comment list #433

merged 2 commits into from
Dec 13, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 9, 2024

유저의 댓글 리스트를 확인하는 request의 헤더에 버전을 추가했습니다!

  • API 버저닝 적용
    - 전략 → 각 API 별로 새로운 버전이 필요할 때마다 하나씩 올리기
    - 기존 → 그냥 둠
    - 아예 새거 → v1부터 시작
    - comment list v1으로 변경 필요

Copy link
Contributor Author

Overall Project 89.95% 🍏
Files changed 100% 🍏

File Coverage
CommentController.java 100% 🍏
CommentService.java 96.5% 🍏

@hyxrxn hyxrxn requested review from HaiSeong and tackyu December 10, 2024 06:31
Copy link

@HaiSeong HaiSeong left a comment

Choose a reason for hiding this comment

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

수고했습니다. 확인했습니다 👍

@GetMapping("/mine")
public List<CommentOfUserResponse> readCommentsOfMe(@LoginUser UserInfo userInfo) {
return commentService.readCommentsOfUser(userInfo);
@GetMapping(value = "/mine", produces = "application/vnd.pengcook.v1+json")

Choose a reason for hiding this comment

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

이건 리뷰 보다는 생각해볼만한 거리인것 같은데 추후에도 계속 모든 메서드에 버전이 추가되면 항상 produces = "application/vnd.pengcook.v1+json이 반복되게 될것 같아 나중에 불편하지 않을까 생각이 들었어요. 다음 회의때 같이 고민해보면 좋지 않을까 생각합니다.

Copy link
Contributor

Choose a reason for hiding this comment

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

맞는 말이네요. 작성도 불편하고 확인도 불편하겠어요!
회의록을 미리 만들어서 의견 업로드 해뒀습니다~
다음 회의 때 같이 이야기해보아요.

Copy link
Contributor

@tackyu tackyu left a comment

Choose a reason for hiding this comment

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

👍👍

@hyxrxn hyxrxn merged commit 1c54694 into be/dev Dec 13, 2024
1 check passed
@hyxrxn hyxrxn deleted the be/feat/432 branch December 13, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE Backend ♻️ refactor refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants