example-data.com

restaurants / #66

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/66"
)
restaurant = res.json()
{
  "id": 66,
  "name": "Bergstrom LLC",
  "slug": "bergstrom-llc-66",
  "cuisine": "korean",
  "priceRange": "$",
  "rating": 3,
  "ratingCount": 302,
  "countryAlpha2": "DK",
  "city": "South Gate",
  "neighborhood": "Isle of Wight",
  "address": "8922 Northfield Road",
  "phone": "(502) 798-7428",
  "website": "https://bergstrom-llc-66.example.com",
  "hasDelivery": true,
  "isOpen": false,
  "latitude": 30.156243,
  "longitude": -14.551925,
  "createdAt": "2024-08-22T13:04:05.614Z",
  "updatedAt": "2024-08-22T13:04:05.614Z"
}
Draftbit