example-data.com

budgets / #134

userId
Ludwig Stiedemann @ludwig_stiedemann
name
Entertainment
categoryId
34
amount
3169.41
period
quarterly
spent
3427.67
currency
EUR
startsAt
2024-11-05
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/134"
)
budget = res.json()
{
  "id": 134,
  "userId": 132,
  "name": "Entertainment",
  "categoryId": 34,
  "amount": 3169.41,
  "period": "quarterly",
  "spent": 3427.67,
  "currency": "EUR",
  "startsAt": "2024-11-05",
  "endsAt": null,
  "createdAt": "2025-01-15T01:13:26.152Z"
}
Draftbit