example-data.com

goals / #142

userId
Douglas Frami @douglas.frami
name
Meditate daily
category
habit
targetValue
21.5
currentValue
2.7
unit
minutes/day
deadline
2027-04-20
isCompleted
false
createdAt

Component variants

Related

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

const res = await fetch(
  "https://example-data.com/api/v1/goals/142"
);
const goal = (await res.json()) as Goal;
import requests

res = requests.get(
    "https://example-data.com/api/v1/goals/142"
)
goal = res.json()
{
  "id": 142,
  "userId": 148,
  "name": "Meditate daily",
  "category": "habit",
  "targetValue": 21.5,
  "currentValue": 2.7,
  "unit": "minutes/day",
  "deadline": "2027-04-20",
  "isCompleted": false,
  "createdAt": "2025-11-11T04:02:20.348Z"
}
Draftbit