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.
📌 작업한 내용
기존 PATCH /api/v1/books/{bookId}/goals 하나로 생성/수정/삭제를 모두 처리하고 있었으나, 사전 데이터가 없는 상태에서 PATCH 요청이 실패하는 문제가 배포 후 발견되었습니다. 이에 따라 엔드포인트를 세 개로 분리하는 리팩토링을 진행했습니다.
🔍 참고 사항
아마 삭제 API를 실행하셔도 독서 기록 상세 조회 API와 책 목표 조회 API에서는 가장 최근에 생성된 독서 목표로 뜰텐데, 이건 독서 목표 삭제 API가 단순 데이터 삭제가 아니라 목표를 비활성 시키는 API라서 그렇습니다! 독서 목표가 삭제되어도 (즉, 완료되거나 정지되어도) 독서 상세 페이지에 최근 기록과 목표가 표시되어야 하기 때문에 이렇게 구현되어 있습니다. 루틴 목록 조회 API에서는 제대로 사라지는 것을 확인했습니다.
🖼️ 스크린샷
🔗 관련 이슈
✅ 체크리스트