example-data.com

restaurants / #10

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/10"
)
restaurant = res.json()
{
  "id": 10,
  "name": "Cruickshank - Jacobi",
  "slug": "cruickshank-jacobi-10",
  "cuisine": "mexican",
  "priceRange": "$$$$",
  "rating": 3,
  "ratingCount": 1790,
  "countryAlpha2": "MA",
  "city": "Vandervortfield",
  "neighborhood": "West Yorkshire",
  "address": "234 Agustina Rapids",
  "phone": "(269) 385-2605",
  "website": "https://cruickshank-jacobi-10.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": 34.0401,
  "longitude": 55.470936,
  "createdAt": "2024-07-05T01:55:17.725Z",
  "updatedAt": "2024-07-05T01:55:17.725Z"
}
Draftbit