example-data.com

restaurants / #5

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/5"
)
restaurant = res.json()
{
  "id": 5,
  "name": "Durgan Group",
  "slug": "durgan-group-5",
  "cuisine": "french",
  "priceRange": "$$$",
  "rating": 3.1,
  "ratingCount": 2352,
  "countryAlpha2": "DE",
  "city": "Fort Collins",
  "neighborhood": "Isle of Wight",
  "address": "53526 Amalia Gateway",
  "phone": "(479) 832-0442",
  "website": "https://durgan-group-5.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 16.394441,
  "longitude": 63.98066,
  "createdAt": "2025-10-13T03:52:21.315Z",
  "updatedAt": "2025-10-13T03:52:21.315Z"
}
Draftbit