-
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
feat: 유저 알람 설정 #30
feat: 유저 알람 설정 #30
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.
러프하게 보고 의견내는거긴 한데요! "/v1/alarms" 이렇게 alarm을 하나의 자원으로 명시하기보단 "/v1/users/{userId}/settings" or "/v1/users/settings" 이렇게 하고 PATCH로 설정 값 변경하면 어떨까요?
알람 설정말고도 다른 설정 값들이 추가될 수도 있고요!
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.
말씀주신 부분은 이해되고, 추후에 알람 기능에 한하여, 알람이 세분화 된다면 그때는 PUT으로 body를 항상 받는 형태로 가져가고자 합니다!
다만, 세팅을 전체적으로 묶는 건 기피하고자 합니다.
세팅 전체를 단일한 PUT 메서드로 제공하는 경우, 설정 기능이 고도화되면 될수록 점차 body가 커집니다.
그에 따라 필드가 2,30개 되는 건 순식간이더라고요.
그래서 개인적으로 애초에 너무 큰 단위로 여겨질 수 있는 '설정' 단위로 놓는 것은 기피하는 편입니다.
물론, 개인마다 판단의 기준이 다르겠지만요!
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.
수고하셨습니다 :)
cd254d3
to
26d88b9
Compare
📌 Related Issue
🚨 해결하려는 문제가 무엇인가요?
⭐️ 어떻게 해결했나요?
유저 알람 설정
유저 서비스 레이어 리팩토링
🤔 어떤 부분에 집중하여 리뷰해야 할까요?
🗒️ 참고자료
RCA 룰