example-data.com

restaurants / #48

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/48"
)
restaurant = res.json()
{
  "id": 48,
  "name": "Macejkovic - Lehner",
  "slug": "macejkovic-lehner-48",
  "cuisine": "vietnamese",
  "priceRange": "$$$$",
  "rating": 4.3,
  "ratingCount": 717,
  "countryAlpha2": "AE",
  "city": "Petertown",
  "neighborhood": "Hampshire",
  "address": "919 Cassandre Radial",
  "phone": "(631) 817-0504",
  "website": "https://macejkovic-lehner-48.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -7.112253,
  "longitude": -166.442625,
  "createdAt": "2024-08-29T21:17:10.657Z",
  "updatedAt": "2024-08-29T21:17:10.657Z"
}
Draftbit