example-data.com

restaurants / #30

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/restaurants/30"
)
restaurant = res.json()
{
  "id": 30,
  "name": "Mills, Kassulke and Marquardt",
  "slug": "mills-kassulke-and-marquardt-30",
  "cuisine": "vietnamese",
  "priceRange": "$$$",
  "rating": 3.6,
  "ratingCount": 1380,
  "countryAlpha2": "GR",
  "city": "Jeffersonville",
  "neighborhood": "Jefferson County",
  "address": "12293 Hillside Road",
  "phone": "(993) 609-5340",
  "website": "https://mills-kassulke-and-marquardt-30.example.com",
  "hasDelivery": true,
  "isOpen": true,
  "latitude": 57.324171,
  "longitude": -58.077778,
  "createdAt": "2024-07-04T11:42:40.012Z",
  "updatedAt": "2024-07-04T11:42:40.012Z"
}
Draftbit