Travel
- userId
-
Conrad Connelly @conrad.connelly22
- name
- Travel
- categoryId
- Automotive
- amount
- 1401.32
- period
- monthly
- spent
- 908.62
- currency
- AUD
- startsAt
- 2024-09-17
- endsAt
- —
- createdAt
Overview
budgets / #26
Travel
#26
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/26" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/26" ); const budget = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/budgets.d.ts https://example-data.com/types/budgets.d.ts
import type { Budget } from "./types/budgets";
const res = await fetch(
"https://example-data.com/api/v1/budgets/26"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/26"
)
budget = res.json() Response
{
"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"
}