example-data.com

menu-items / #40

menuId
menus/5
name
Glazed Shrimp Pizza
slug
glazed-shrimp-pizza-40
description
Perfectly balanced with textures and complementary flavors.
price
53.28
currency
USD
foodCategoryId
30
spicyLevel
0
isVegetarian
false
isVegan
false
isGlutenFree
true
imageUrl
https://picsum.photos/seed/menu-item-40/640/480
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/menu-items/40"
)
menu_item = res.json()
{
  "id": 40,
  "menuId": 5,
  "name": "Glazed Shrimp Pizza",
  "slug": "glazed-shrimp-pizza-40",
  "description": "Perfectly balanced with textures and complementary flavors.",
  "price": 53.28,
  "currency": "USD",
  "foodCategoryId": 30,
  "spicyLevel": 0,
  "isVegetarian": false,
  "isVegan": false,
  "isGlutenFree": true,
  "imageUrl": "https://picsum.photos/seed/menu-item-40/640/480",
  "createdAt": "2024-10-10T02:51:30.168Z"
}
Draftbit