example-data.com

restaurants / #64

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/64"
)
restaurant = res.json()
{
  "id": 64,
  "name": "Hills Group",
  "slug": "hills-group-64",
  "cuisine": "american",
  "priceRange": "$$",
  "rating": 2.5,
  "ratingCount": 2251,
  "countryAlpha2": "FJ",
  "city": "North Jaylincester",
  "neighborhood": "Clay County",
  "address": "93751 Beechwood Avenue",
  "phone": "(213) 382-7178",
  "website": "https://hills-group-64.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 50.566748,
  "longitude": -130.325217,
  "createdAt": "2024-07-19T01:43:20.472Z",
  "updatedAt": "2024-07-19T01:43:20.472Z"
}
Draftbit