example-data.com

restaurants / #23

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/23"
)
restaurant = res.json()
{
  "id": 23,
  "name": "Hand Inc",
  "slug": "hand-inc-23",
  "cuisine": "indian",
  "priceRange": "$$",
  "rating": 3.2,
  "ratingCount": 2369,
  "countryAlpha2": "DK",
  "city": "Costa Mesa",
  "neighborhood": "Fife",
  "address": "94143 S Railroad Street",
  "phone": "(240) 280-2946",
  "website": "https://hand-inc-23.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 30.240695,
  "longitude": -50.433774,
  "createdAt": "2025-03-08T04:56:35.024Z",
  "updatedAt": "2025-03-08T04:56:35.024Z"
}
Draftbit