example-data.com

menu-items / #37

menuId
menus/5
name
House Veggie Sandwich
slug
house-veggie-sandwich-37
description
A light yet satisfying dish with vibrant flavors.
price
10.15
currency
USD
foodCategoryId
24
spicyLevel
0
isVegetarian
true
isVegan
false
isGlutenFree
false
imageUrl
https://picsum.photos/seed/menu-item-37/640/480
createdAt

Component variants

Related

References

curl -sS \
  "https://example-data.com/api/v1/menu-items/37" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/menu-items/37"
);
const menuItem = await res.json();
import type { MenuItem } from "https://example-data.com/types/menu-items.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/menu-items/37"
);
const menuItem = (await res.json()) as MenuItem;
import requests

res = requests.get(
    "https://example-data.com/api/v1/menu-items/37"
)
menu_item = res.json()
{
  "id": 37,
  "menuId": 5,
  "name": "House Veggie Sandwich",
  "slug": "house-veggie-sandwich-37",
  "description": "A light yet satisfying dish with vibrant flavors.",
  "price": 10.15,
  "currency": "USD",
  "foodCategoryId": 24,
  "spicyLevel": 0,
  "isVegetarian": true,
  "isVegan": false,
  "isGlutenFree": false,
  "imageUrl": "https://picsum.photos/seed/menu-item-37/640/480",
  "createdAt": "2024-10-31T21:50:47.320Z"
}
Draftbit