example-data.com

restaurants / #92

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/92"
)
restaurant = res.json()
{
  "id": 92,
  "name": "Klocko, Gusikowski and Lockman",
  "slug": "klocko-gusikowski-and-lockman-92",
  "cuisine": "ethiopian",
  "priceRange": "$",
  "rating": 2.9,
  "ratingCount": 2349,
  "countryAlpha2": "CO",
  "city": "Lake Vern",
  "neighborhood": "Douglas County",
  "address": "2058 Conroy Bypass",
  "phone": "(733) 404-4487",
  "website": "https://klocko-gusikowski-and-lockman-92.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -20.799,
  "longitude": 62.552389,
  "createdAt": "2025-01-31T03:03:37.295Z",
  "updatedAt": "2025-01-31T03:03:37.295Z"
}
Draftbit