example-data.com

restaurants / #91

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/91"
)
restaurant = res.json()
{
  "id": 91,
  "name": "O'Keefe - Cruickshank",
  "slug": "o-keefe-cruickshank-91",
  "cuisine": "korean",
  "priceRange": "$$$",
  "rating": 4.8,
  "ratingCount": 2912,
  "countryAlpha2": "NL",
  "city": "Covina",
  "neighborhood": "Oxfordshire",
  "address": "8634 N 7th Street",
  "phone": "(545) 649-2470",
  "website": "https://o-keefe-cruickshank-91.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -40.242941,
  "longitude": 176.532578,
  "createdAt": "2025-01-11T10:50:47.440Z",
  "updatedAt": "2025-01-11T10:50:47.440Z"
}
Draftbit