Pasta & Rice
Pasta dishes, risotto, and rice-based entrees.
Overview
food-categories / #12
Pasta dishes, risotto, and rice-based entrees.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/food-categories/12" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/food-categories/12" ); 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/12"
);
const foodCategory = (await res.json()) as FoodCategory; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/food-categories/12"
)
food_categorie = res.json() Response
{
"id": 12,
"name": "Pasta & Rice",
"slug": "pasta-rice",
"description": "Pasta dishes, risotto, and rice-based entrees.",
"parentId": 2,
"sortOrder": 2
}