feat: Add API contract for delete task by ID [todo-backend] - #233
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Summary by CodeRabbit
WalkthroughThe README.md file for the todo-backend API was updated to document a new DELETE endpoint at Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
Client->>API: DELETE /v1/tasks/{task_id}
alt Valid task_id and task exists
API-->>Client: 204 No Content
else Invalid task_id format
API-->>Client: 400 Bad Request (error JSON)
else Task not found
API-->>Client: 404 Not Found (error JSON)
else Internal server error
API-->>Client: 500 Internal Server Error (error JSON)
end
Possibly related PRs
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 4
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
📒 Files selected for processing (1)
todo-backend/README.md(2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
todo-backend/README.md
277-277: Inline HTML
Element: a
(MD033, no-inline-html)
291-291: Unordered list indentation
Expected: 4; Actual: 6
(MD007, ul-indent)
292-292: Unordered list indentation
Expected: 4; Actual: 6
(MD007, ul-indent)
293-293: Fenced code blocks should be surrounded by blank lines
null
(MD031, blanks-around-fences)
311-311: Fenced code blocks should be surrounded by blank lines
null
(MD031, blanks-around-fences)
329-329: Fenced code blocks should be surrounded by blank lines
null
(MD031, blanks-around-fences)
🔇 Additional comments (1)
todo-backend/README.md (1)
65-65: Approve addition of DELETE route to summary table.The new row correctly lists the DELETE
/v1/tasks/{task_id}endpoint in the route summary.
f8fd894 to
3d10d3c
Compare
3d10d3c to
6fe8870
Compare
Date: 28 May 2025
Developer Name: @AnujChhikara
Issue Ticket Number
Description
Added the API contract for the DELETE v1/task/{task_id} endpoint in the Todo backend.
Feature PR: -
Documentation Updated?
Under Feature Flag
Database Changes
Breaking Changes
Development Tested?
Screenshots
Screenshot 1
Test Coverage
Screenshot 1
Additional Notes