example-data.com

restaurants / #94

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/94"
)
restaurant = res.json()
{
  "id": 94,
  "name": "Morissette, Pagac and Schamberger",
  "slug": "morissette-pagac-and-schamberger-94",
  "cuisine": "mexican",
  "priceRange": "$$",
  "rating": 4.7,
  "ratingCount": 1117,
  "countryAlpha2": "SE",
  "city": "Fort Anjaliville",
  "neighborhood": "Dyfed",
  "address": "7615 Nicolas Gateway",
  "phone": "(733) 734-0175",
  "website": "https://morissette-pagac-and-schamberger-94.example.com",
  "hasDelivery": false,
  "isOpen": true,
  "latitude": 18.108643,
  "longitude": -174.264134,
  "createdAt": "2025-02-09T16:43:23.559Z",
  "updatedAt": "2025-02-09T16:43:23.559Z"
}
Draftbit