example-data.com

restaurants / #72

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/72"
)
restaurant = res.json()
{
  "id": 72,
  "name": "Schamberger LLC",
  "slug": "schamberger-llc-72",
  "cuisine": "ethiopian",
  "priceRange": "$$$$",
  "rating": 4.1,
  "ratingCount": 1798,
  "countryAlpha2": "ID",
  "city": "Walshville",
  "neighborhood": "Fife",
  "address": "5276 Church Avenue",
  "phone": "(395) 830-1751",
  "website": "https://schamberger-llc-72.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": -41.765323,
  "longitude": -145.399419,
  "createdAt": "2024-10-17T14:38:55.700Z",
  "updatedAt": "2024-10-17T14:38:55.700Z"
}
Draftbit