example-data.com
Menu
Browse docs and collections

Overview

menus / #109

Bar Menu

restaurantId
Armstrong - Rau · Uptonshire · ★ 3.9
name
Bar Menu
description
Signature dishes that define our culinary identity.
isActive
true
createdAt
updatedAt

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/menus/109" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/menus/109"
);
const menu = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/menus.d.ts https://example-data.com/types/menus.d.ts
import type { Menu } from "./types/menus";

const res = await fetch(
  "https://example-data.com/api/v1/menus/109"
);
const menu = (await res.json()) as Menu;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/menus/109"
)
menu = res.json()

Response

{
  "id": 109,
  "restaurantId": 69,
  "name": "Bar Menu",
  "description": "Signature dishes that define our culinary identity.",
  "isActive": true,
  "createdAt": "2024-10-16T04:50:32.431Z",
  "updatedAt": "2025-01-21T03:33:43.907Z"
}