Clothing & Apparel
Men's, women's, and children's clothing, shoes, and accessories.
categories / #2
Men's, women's, and children's clothing, shoes, and accessories.
curl -sS \
"https://example-data.com/api/v1/categories/2" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/categories/2"
);
const categorie = await res.json();import type { Categorie } from "https://example-data.com/types/categories.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/categories/2"
);
const categorie = (await res.json()) as Categorie;import requests
res = requests.get(
"https://example-data.com/api/v1/categories/2"
)
categorie = res.json() {
"id": 2,
"name": "Clothing & Apparel",
"slug": "clothing-apparel",
"description": "Men's, women's, and children's clothing, shoes, and accessories.",
"parentId": null,
"sortOrder": 2
}