Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .bass/issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Implement Delete Todo endpoint (DELETE /todos/:id)

Implement DELETE /todos/:id to remove a Todo item. Response should be 204 No Content on success, or 404 Not Found if the id does not exist.

Acceptance Criteria:
- Returns 204 and deletes the Todo for an existing id
- Returns 404 for a non-existent id
- Subsequent GET /todos/:id for the deleted id returns 404

Test Cases:
- Integration: DELETE /todos/:id with valid id returns 204
- Integration: DELETE /todos/:id with non-existent id returns 404
- Integration: Deleting a todo then calling GET /todos/:id returns 404
- Edge: DELETE /todos/:id with malformed id returns 404 (or 400)

Please implement this fix.
Loading