📝 Todo list
Get todo by id
The API endpoint retrieves a specific todo item based on the todo ID provided as a path variable in the URL.
When accessing this endpoint and specifying a valid todo ID in the URL, you will receive a response containing the details of the corresponding todo item.
get/todos/{todoId}
Response
Get todo by id
Example response
{
"data": {
"_id": "648e0749aeefd0cfa40adde1",
"createdAt": "2023-06-17T19:19:37.856Z",
"title": "Learn Ruby",
"updatedAt": "2023-06-17T19:19:37.856Z"
},
"message": "Todo fetched successfully",
"statusCode": 200,
"success": true
}