-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feature] Goal API 작성 #27 #32
Conversation
return ResponseEntity.ok(response) | ||
} | ||
|
||
@GetMapping("/{goal_id}") |
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.
pathVariable도 카멜 케이스로 통일해도 좋을 것 같습니다~!
} | ||
|
||
@DeleteMapping | ||
fun delete( |
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.
delete의 경우 http status noContent로 반환해도 좋을 것 같습니다!
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.
반영했습니다 감사합니다 ㅎㅎ
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.
진호님 고생하셨습니다~!
명세에 맞춰 Goal 관련 비즈니스 로직을 작성하고 API를 구현하겠습니다. -> 명세 #27
1. 구현 사항
String을 날짜 포멧에 맞는 숫자들로 변경하고, 고정된 Day 값을 관리할 객체가 필요할 것 같아 구현했습니다.
물론 DB에 직접 null을 저장하는 것은 좋지 않다고 생각되어, null의 경우 빈 문자열
""
로 값이 설정되도록 했습니다.