goals / #37
- userId
-
Gwendolyn Wyman @gwendolyn.wyman87
- name
- Drink 2L water daily
- category
- nutrition
- targetValue
- 2
- currentValue
- 0.6
- unit
- L/day
- deadline
- 2026-04-30
- isCompleted
- false
- createdAt
Component variants
Medium
Drink 2L water daily
#37
Small
goals/37 Related
References
curl -sS \
"https://example-data.com/api/v1/goals/37" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/goals/37"
);
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/37"
);
const goal = (await res.json()) as Goal;import requests
res = requests.get(
"https://example-data.com/api/v1/goals/37"
)
goal = res.json() {
"id": 37,
"userId": 40,
"name": "Drink 2L water daily",
"category": "nutrition",
"targetValue": 2,
"currentValue": 0.6,
"unit": "L/day",
"deadline": "2026-04-30",
"isCompleted": false,
"createdAt": "2026-03-12T05:36:36.557Z"
}