example-data.com

menu-items / #31

menuId
menus/4
name
Roasted Crab Curry
slug
roasted-crab-curry-31
description
A crowd-pleasing selection that never disappoints.
price
69.17
currency
USD
foodCategoryId
spicyLevel
2
isVegetarian
false
isVegan
false
isGlutenFree
true
imageUrl
https://picsum.photos/seed/menu-item-31/640/480
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/menu-items/31"
)
menu_item = res.json()
{
  "id": 31,
  "menuId": 4,
  "name": "Roasted Crab Curry",
  "slug": "roasted-crab-curry-31",
  "description": "A crowd-pleasing selection that never disappoints.",
  "price": 69.17,
  "currency": "USD",
  "foodCategoryId": null,
  "spicyLevel": 2,
  "isVegetarian": false,
  "isVegan": false,
  "isGlutenFree": true,
  "imageUrl": "https://picsum.photos/seed/menu-item-31/640/480",
  "createdAt": "2024-11-20T22:27:25.280Z"
}
Draftbit