v1

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

Get all todos

The API endpoint allows you to retrieve all the added todos.

When accessing this endpoint, you will receive a response containing a list of all the todos that have been added.

get/todos

Query parameters

querystring
Example:reactjs
completestring
Example:false

Response

Get all todos

messagestring
statusCodenumber
successboolean

Example response

{
  "data": [
    {
      "__v": 0,
      "_id": "648e070a36b0cc220c8a7883",
      "createdAt": "2023-06-17T19:18:34.462Z",
      "description": "Some description about todo",
      "isDone": false,
      "title": "Learn python",
      "updatedAt": "2023-06-17T19:18:34.462Z"
    },
    {
      "__v": 0,
      "_id": "648e0741aeefd0cfa40adddd",
      "createdAt": "2023-06-17T19:19:29.887Z",
      "description": "",
      "isDone": false,
      "title": "Learn Javascript",
      "updatedAt": "2023-06-17T19:19:29.887Z"
    },
    {
      "__v": 0,
      "_id": "648e0746aeefd0cfa40adddf",
      "createdAt": "2023-06-17T19:19:34.866Z",
      "description": "",
      "isDone": false,
      "title": "Learn ReactJs",
      "updatedAt": "2023-06-17T19:19:34.866Z"
    },
    {
      "__v": 0,
      "_id": "648e0749aeefd0cfa40adde1",
      "createdAt": "2023-06-17T19:19:37.856Z",
      "description": "",
      "isDone": false,
      "title": "Learn Ruby",
      "updatedAt": "2023-06-17T19:19:37.856Z"
    }
  ],
  "message": "Todos fetched successfully",
  "statusCode": 201,
  "success": true
}