example-data.com

todos / #21

todoListId
todo-lists/2
title
Plan the contract
isDone
true
dueDate
2026-06-16
completedAt
createdAt
updatedAt

Component variants

Related

References

curl -sS \
  "https://example-data.com/api/v1/todos/21" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/todos/21"
);
const todo = await res.json();
import type { Todo } from "https://example-data.com/types/todos.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/todos/21"
);
const todo = (await res.json()) as Todo;
import requests

res = requests.get(
    "https://example-data.com/api/v1/todos/21"
)
todo = res.json()
{
  "id": 21,
  "todoListId": 2,
  "title": "Plan the contract",
  "isDone": true,
  "dueDate": "2026-06-16",
  "completedAt": "2025-11-01T17:03:17.462Z",
  "createdAt": "2025-05-22T03:09:10.105Z",
  "updatedAt": "2025-10-08T01:56:16.377Z"
}
Draftbit