example-data.com

restaurants / #3

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/3"
)
restaurant = res.json()
{
  "id": 3,
  "name": "Harber, Wolf and Reynolds",
  "slug": "harber-wolf-and-reynolds-3",
  "cuisine": "ethiopian",
  "priceRange": "$$$$",
  "rating": 4.5,
  "ratingCount": 706,
  "countryAlpha2": "DK",
  "city": "Providencifurt",
  "neighborhood": "Montgomery County",
  "address": "96966 Hyatt Inlet",
  "phone": "(512) 272-9183",
  "website": "https://harber-wolf-and-reynolds-3.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 2.014301,
  "longitude": 14.07471,
  "createdAt": "2024-06-16T05:52:49.627Z",
  "updatedAt": "2024-06-16T05:52:49.627Z"
}
Draftbit