example-data.com

budgets / #21

userId
Rosella Homenick @rosella.homenick
name
Dining Out
categoryId
23
amount
2601.14
period
quarterly
spent
880.8
currency
CAD
startsAt
2025-01-22
endsAt
2025-04-22
createdAt

Component variants

Related

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

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/21"
)
budget = res.json()
{
  "id": 21,
  "userId": 27,
  "name": "Dining Out",
  "categoryId": 23,
  "amount": 2601.14,
  "period": "quarterly",
  "spent": 880.8,
  "currency": "CAD",
  "startsAt": "2025-01-22",
  "endsAt": "2025-04-22",
  "createdAt": "2025-03-27T23:09:38.893Z"
}
Draftbit