example-data.com

restaurants / #6

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/6"
)
restaurant = res.json()
{
  "id": 6,
  "name": "McDermott - Metz",
  "slug": "mcdermott-metz-6",
  "cuisine": "vietnamese",
  "priceRange": "$$",
  "rating": 2.7,
  "ratingCount": 362,
  "countryAlpha2": "SA",
  "city": "East Darlene",
  "neighborhood": "Clwyd",
  "address": "6851 Schimmel Well",
  "phone": "(444) 360-8417",
  "website": "https://mcdermott-metz-6.example.com",
  "hasDelivery": true,
  "isOpen": false,
  "latitude": 16.249238,
  "longitude": 8.476523,
  "createdAt": "2024-08-28T10:40:56.527Z",
  "updatedAt": "2024-08-28T10:40:56.527Z"
}
Draftbit