food-categories
food-categories
Page 2 of 2.
Overview
-
Chef Specials
Curated daily specials crafted by the head chef.
-
Seasonal Menu
Dishes featuring seasonal and locally sourced ingredients.
-
Kids Menu
Child-friendly portions and dishes for younger diners.
-
Healthy Options
Low-calorie, high-protein, and nutritionally balanced dishes.
-
Vegan & Vegetarian
Plant-based and vegetarian dishes for conscious eaters.
-
Brunch Specials
Weekend brunch favorites served late morning.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/food-categories?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/food-categories?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/food-categories";
const res = await fetch(
"https://example-data.com/api/v1/food-categories?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<FoodCategory>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/food-categories",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 25,
"name": "Chef Specials",
"slug": "chef-specials",
"description": "Curated daily specials crafted by the head chef.",
"parentId": 6,
"sortOrder": 1
},
{
"id": 26,
"name": "Seasonal Menu",
"slug": "seasonal-menu",
"description": "Dishes featuring seasonal and locally sourced ingredients.",
"parentId": 6,
"sortOrder": 2
},
{
"id": 27,
"name": "Kids Menu",
"slug": "kids-menu",
"description": "Child-friendly portions and dishes for younger diners.",
"parentId": 6,
"sortOrder": 3
}
],
"meta": {
"page": 2,
"limit": 24,
"total": 30,
"totalPages": 2
},
"links": {
"self": "/api/v1/food-categories?page=2&limit=24",
"first": "/api/v1/food-categories?page=1&limit=24",
"last": "/api/v1/food-categories?page=2&limit=24",
"next": null,
"prev": "/api/v1/food-categories?page=1&limit=24"
}
}