example-data.com

restaurants / #59

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/59"
)
restaurant = res.json()
{
  "id": 59,
  "name": "Blanda and Sons",
  "slug": "blanda-and-sons-59",
  "cuisine": "thai",
  "priceRange": "$$",
  "rating": 4.1,
  "ratingCount": 2682,
  "countryAlpha2": "DE",
  "city": "New Odashire",
  "neighborhood": "Dumfries and Galloway",
  "address": "55400 Carmela Ramp",
  "phone": "(904) 495-3986",
  "website": "https://blanda-and-sons-59.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 26.34044,
  "longitude": 163.664341,
  "createdAt": "2024-08-27T21:15:41.971Z",
  "updatedAt": "2024-08-27T21:15:41.971Z"
}
Draftbit