Skip to content

feat: Note の Update・Delete を実装する#11

Merged
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-5-note-update-delete
May 19, 2026
Merged

feat: Note の Update・Delete を実装する#11
hideyukiMORI merged 1 commit into
mainfrom
feat/issue-5-note-update-delete

Conversation

@hideyukiMORI
Copy link
Copy Markdown
Owner

Summary

  • NoteRepositoryInterfaceupdate() / delete() を追加
  • InMemoryNoteRepository に実装
  • UpdateNoteUseCase / DeleteNoteUseCase を追加
  • PUT /notes/{note_id} → 200 / 404 / 422、DELETE /notes/{note_id} → 204 / 404

Test plan

  • 25 passed、coverage 96%
  • Update 正常系・404・422 テスト
  • Delete 正常系・404 テスト(削除後の GET が 404 になることも確認)

Closes #5

🤖 Generated with Claude Code

- NoteRepositoryInterface に update() / delete() を追加
- InMemoryNoteRepository に実装
- UpdateNoteUseCase / DeleteNoteUseCase を追加
- PUT /notes/{note_id} → 200 / 404、DELETE /notes/{note_id} → 204 / 404
- テスト 6 件追加(正常系・404・422)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideyukiMORI hideyukiMORI merged commit 267805d into main May 19, 2026
@hideyukiMORI hideyukiMORI deleted the feat/issue-5-note-update-delete branch May 19, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Note の Update・Delete を実装する

1 participant