meals / #18
- userId
-
Cayla Farrell @cayla_farrell
- name
- Sushi Roll
- kind
- lunch
- calories
- 428
- proteinGrams
- 6.6
- carbsGrams
- 41.6
- fatGrams
- 26.1
- eatenAt
- createdAt
Component variants
Medium
Sushi Roll
#18
Small
meals/18 Related
References
curl -sS \
"https://example-data.com/api/v1/meals/18" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/meals/18"
);
const meal = await res.json();import type { Meal } from "https://example-data.com/types/meals.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/meals/18"
);
const meal = (await res.json()) as Meal;import requests
res = requests.get(
"https://example-data.com/api/v1/meals/18"
)
meal = res.json() {
"id": 18,
"userId": 4,
"name": "Sushi Roll",
"kind": "lunch",
"calories": 428,
"proteinGrams": 6.6,
"carbsGrams": 41.6,
"fatGrams": 26.1,
"eatenAt": "2026-04-05T01:49:43.630Z",
"createdAt": "2026-04-05T02:18:48.444Z"
}