v1

latestOpenAPI 3.0.3raw.githubusercontent.com2024-10-2916802.4 MB
📝 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

descriptionstring
titlestring

Example request

{
  "description": "Some description about todo which is optional",
  "title": "Contibute ReactJs"
}

Response

Create todo

messagestring
statusCodenumber
successboolean

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
}