Appetizers
Starters, snacks, and small bites to begin a meal.
Overview
food-categories / #1
Starters, snacks, and small bites to begin a meal.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/food-categories/1" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/food-categories/1" ); const foodCategory = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/food-categories.d.ts https://example-data.com/types/food-categories.d.ts
import type { FoodCategory } from "./types/food-categories";
const res = await fetch(
"https://example-data.com/api/v1/food-categories/1"
);
const foodCategory = (await res.json()) as FoodCategory; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/food-categories/1"
)
food_categorie = res.json() Response
{
"id": 1,
"name": "Appetizers",
"slug": "appetizers",
"description": "Starters, snacks, and small bites to begin a meal.",
"parentId": null,
"sortOrder": 1
}