example-data.com

food-categories / #14

Seafood

Fish, shrimp, lobster, and other ocean dishes.

Component variants

curl -sS \
  "https://example-data.com/api/v1/food-categories/14" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/food-categories/14"
);
const foodCategorie = await res.json();
import type { FoodCategorie } from "https://example-data.com/types/food-categories.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/food-categories/14"
);
const foodCategorie = (await res.json()) as FoodCategorie;
import requests

res = requests.get(
    "https://example-data.com/api/v1/food-categories/14"
)
food_categorie = res.json()
{
  "id": 14,
  "name": "Seafood",
  "slug": "seafood",
  "description": "Fish, shrimp, lobster, and other ocean dishes.",
  "parentId": 2,
  "sortOrder": 4
}
Draftbit