📝 Todo list
Create todo
The "Create Todo" API endpoint allows you to create a new todo item by providing the title and description as a request body.
By accessing this endpoint and providing the necessary information, a new todo item will be created in the system.
post/todos/
Request body
Example request
{
"description": "Some description about todo which is optional",
"title": "Contibute ReactJs"
}Response
Create todo
Example response
{
"data": {
"_id": "648e0749aeefd0cfa40adde1",
"createdAt": "2023-06-17T19:19:37.856Z",
"title": "Learn Ruby",
"updatedAt": "2023-06-17T19:19:37.856Z"
},
"message": "Todo created successfully",
"statusCode": 200,
"success": true
}