Seafood
Fish, shrimp, lobster, and other ocean dishes.
Overview
food-categories / #14
Fish, shrimp, lobster, and other ocean dishes.
Request
curl example
curl -sS \ "https://example-data.com/api/v1/food-categories/14" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/food-categories/14" ); 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/14"
);
const foodCategory = (await res.json()) as FoodCategory; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/food-categories/14"
)
food_categorie = res.json() Response
{
"id": 14,
"name": "Seafood",
"slug": "seafood",
"description": "Fish, shrimp, lobster, and other ocean dishes.",
"parentId": 2,
"sortOrder": 4
}