example-data.com

restaurants / #38

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/38"
)
restaurant = res.json()
{
  "id": 38,
  "name": "Hartmann, Dach and Kub",
  "slug": "hartmann-dach-and-kub-38",
  "cuisine": "korean",
  "priceRange": "$",
  "rating": 4.2,
  "ratingCount": 150,
  "countryAlpha2": "ES",
  "city": "Gusikowskifield",
  "neighborhood": "Avon",
  "address": "7590 Oak Road",
  "phone": "(223) 459-1263",
  "website": "https://hartmann-dach-and-kub-38.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -36.232636,
  "longitude": -44.963046,
  "createdAt": "2024-06-01T14:38:00.612Z",
  "updatedAt": "2024-06-01T14:38:00.612Z"
}
Draftbit