example-data.com

restaurants / #37

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/37"
)
restaurant = res.json()
{
  "id": 37,
  "name": "Cummings and Sons",
  "slug": "cummings-and-sons-37",
  "cuisine": "japanese",
  "priceRange": "$$$",
  "rating": 3.5,
  "ratingCount": 2681,
  "countryAlpha2": "DK",
  "city": "Rodriguezville",
  "neighborhood": "West Sussex",
  "address": "374 Airport Road",
  "phone": "(854) 551-0315",
  "website": "https://cummings-and-sons-37.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -6.535777,
  "longitude": 135.334356,
  "createdAt": "2025-02-07T04:20:58.821Z",
  "updatedAt": "2025-02-07T04:20:58.821Z"
}
Draftbit