example-data.com

restaurants / #70

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/70"
)
restaurant = res.json()
{
  "id": 70,
  "name": "Parisian and Sons",
  "slug": "parisian-and-sons-70",
  "cuisine": "japanese",
  "priceRange": "$",
  "rating": 3.9,
  "ratingCount": 2382,
  "countryAlpha2": "NZ",
  "city": "New Timmothy",
  "neighborhood": "Bedfordshire",
  "address": "35633 Stroman Well",
  "phone": "(403) 927-2497",
  "website": "https://parisian-and-sons-70.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -41.898474,
  "longitude": -29.950085,
  "createdAt": "2024-12-11T13:52:14.997Z",
  "updatedAt": "2024-12-11T13:52:14.997Z"
}
Draftbit