example-data.com

restaurants / #76

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/76"
)
restaurant = res.json()
{
  "id": 76,
  "name": "Grimes, Durgan and Grady",
  "slug": "grimes-durgan-and-grady-76",
  "cuisine": "korean",
  "priceRange": "$$$",
  "rating": 4,
  "ratingCount": 2013,
  "countryAlpha2": "PT",
  "city": "Fort Estelfield",
  "neighborhood": "Tayside",
  "address": "325 Schoen Canyon",
  "phone": "(819) 666-2420",
  "website": "https://grimes-durgan-and-grady-76.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": 20.681921,
  "longitude": -127.120249,
  "createdAt": "2024-12-17T06:40:43.912Z",
  "updatedAt": "2024-12-17T06:40:43.912Z"
}
Draftbit