Plan the contract
- todoListId
- todo-lists/2
- title
- Plan the contract
- isDone
- true
- dueDate
- 2026-06-16
- completedAt
- createdAt
- updatedAt
Overview
todos / #21
Plan the contract
#21
Request
curl example
curl -sS \ "https://example-data.com/api/v1/todos/21" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/todos/21" ); const todo = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/todos.d.ts https://example-data.com/types/todos.d.ts
import type { Todo } from "./types/todos";
const res = await fetch(
"https://example-data.com/api/v1/todos/21"
);
const todo = (await res.json()) as Todo; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/todos/21"
)
todo = res.json() Response
{
"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"
}