example-data.com

restaurants / #99

Component variants

Related

curl -sS \
  "https://example-data.com/api/v1/restaurants/99" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/restaurants/99"
);
const restaurant = await res.json();
import type { Restaurant } from "https://example-data.com/types/restaurants.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/restaurants/99"
);
const restaurant = (await res.json()) as Restaurant;
import requests

res = requests.get(
    "https://example-data.com/api/v1/restaurants/99"
)
restaurant = res.json()
{
  "id": 99,
  "name": "Haley, Denesik and Walker",
  "slug": "haley-denesik-and-walker-99",
  "cuisine": "chinese",
  "priceRange": "$",
  "rating": 3.3,
  "ratingCount": 2710,
  "countryAlpha2": "DK",
  "city": "Port Chloe",
  "neighborhood": "Cleveland",
  "address": "813 Geraldine Run",
  "phone": "(922) 501-0460",
  "website": "https://haley-denesik-and-walker-99.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 36.943675,
  "longitude": 158.453849,
  "createdAt": "2025-05-13T03:31:01.461Z",
  "updatedAt": "2025-05-13T03:31:01.461Z"
}
Draftbit