example-data.com
Menu
Browse docs and collections

Overview

tasks / #125

Refactor database query

projectId
projects/16
assigneeUserId
Bradford Doyle @bradford.doyle42
title
Refactor database query
description
Dedecor sub vitium.
status
done
priority
normal
dueDate
2026-04-30
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/tasks/125" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/tasks/125"
);
const task = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/tasks.d.ts https://example-data.com/types/tasks.d.ts
import type { Task } from "./types/tasks";

const res = await fetch(
  "https://example-data.com/api/v1/tasks/125"
);
const task = (await res.json()) as Task;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/tasks/125"
)
task = res.json()

Response

{
  "id": 125,
  "projectId": 16,
  "assigneeUserId": 79,
  "title": "Refactor database query",
  "description": "Dedecor sub vitium.",
  "status": "done",
  "priority": "normal",
  "dueDate": "2026-04-30",
  "createdAt": "2026-01-15T09:10:08.017Z",
  "updatedAt": "2026-05-03T22:27:12.370Z"
}