example-data.com

budgets / #238

userId
Emilia Cummerata @emilia_cummerata
name
Transportation
categoryId
amount
1344.21
period
monthly
spent
550.25
currency
AUD
startsAt
2024-12-26
endsAt
createdAt

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/budgets/238" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/budgets/238"
);
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/238"
);
const budget = (await res.json()) as Budget;
import requests

res = requests.get(
    "https://example-data.com/api/v1/budgets/238"
)
budget = res.json()
{
  "id": 238,
  "userId": 238,
  "name": "Transportation",
  "categoryId": null,
  "amount": 1344.21,
  "period": "monthly",
  "spent": 550.25,
  "currency": "AUD",
  "startsAt": "2024-12-26",
  "endsAt": null,
  "createdAt": "2025-05-06T15:54:33.854Z"
}
Draftbit