example-data.com

budgets / #115

userId
Dovie Gorczany @dovie.gorczany
name
Healthcare
categoryId
34
amount
1286.78
period
yearly
spent
1342.58
currency
CAD
startsAt
2024-06-24
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/115"
)
budget = res.json()
{
  "id": 115,
  "userId": 111,
  "name": "Healthcare",
  "categoryId": 34,
  "amount": 1286.78,
  "period": "yearly",
  "spent": 1342.58,
  "currency": "CAD",
  "startsAt": "2024-06-24",
  "endsAt": null,
  "createdAt": "2025-03-09T04:40:53.266Z"
}
Draftbit