example-data.com

restaurants / #42

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/42"
)
restaurant = res.json()
{
  "id": 42,
  "name": "Braun and Sons",
  "slug": "braun-and-sons-42",
  "cuisine": "japanese",
  "priceRange": "$$$",
  "rating": 3.6,
  "ratingCount": 1815,
  "countryAlpha2": "AT",
  "city": "Deckowland",
  "neighborhood": "Greater Manchester",
  "address": "58813 Tremblay Port",
  "phone": "(858) 667-4984",
  "website": "https://braun-and-sons-42.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": -50.330882,
  "longitude": -17.400631,
  "createdAt": "2025-05-18T15:16:25.538Z",
  "updatedAt": "2025-05-18T15:16:25.538Z"
}
Draftbit