example-data.com

restaurants / #54

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/54"
)
restaurant = res.json()
{
  "id": 54,
  "name": "Marks Inc",
  "slug": "marks-inc-54",
  "cuisine": "korean",
  "priceRange": "$$",
  "rating": 4.1,
  "ratingCount": 510,
  "countryAlpha2": "PE",
  "city": "East Dena",
  "neighborhood": "County Down",
  "address": "3413 Windsor Close",
  "phone": "(920) 374-5646",
  "website": "https://marks-inc-54.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 50.990001,
  "longitude": -154.618661,
  "createdAt": "2024-05-27T23:38:53.107Z",
  "updatedAt": "2024-05-27T23:38:53.107Z"
}
Draftbit