example-data.com

budgets / #26

userId
Conrad Connelly @conrad.connelly22
name
Travel
categoryId
9
amount
1401.32
period
monthly
spent
908.62
currency
AUD
startsAt
2024-09-17
endsAt
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/budgets/26"
)
budget = res.json()
{
  "id": 26,
  "userId": 30,
  "name": "Travel",
  "categoryId": 9,
  "amount": 1401.32,
  "period": "monthly",
  "spent": 908.62,
  "currency": "AUD",
  "startsAt": "2024-09-17",
  "endsAt": null,
  "createdAt": "2024-10-22T19:26:36.490Z"
}
Draftbit