v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📝 Todo list

Delete todo

The API endpoint is responsible for deleting a todo item based on the provided todoID in the path variable.

When accessing this endpoint and specifying the todoID in the URL, the corresponding todo item will be deleted from the system.

delete/todos/{todoId}

Response

Delete todo

messagestring
statusCodenumber
successboolean

Example response

{
  "data": {
    "deletedTodo": {
      "_id": "648e0746aeefd0cfa40adddf",
      "createdAt": "2023-06-17T19:19:34.866Z",
      "title": "Learn ReactJs",
      "updatedAt": "2023-06-17T19:19:34.866Z"
    }
  },
  "message": "Todo deleted successfully",
  "statusCode": 200,
  "success": true
}