Scottish Fold
cat · Scotland
pet-breeds / #38
cat · Scotland
Scottish Fold
cat · Scotland
curl -sS \
"https://example-data.com/api/v1/pet-breeds/38" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/38"
);
const petBreed = await res.json();import type { PetBreed } from "https://example-data.com/types/pet-breeds.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/38"
);
const petBreed = (await res.json()) as PetBreed;import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/38"
)
pet_breed = res.json() {
"id": 38,
"name": "Scottish Fold",
"slug": "scottish-fold",
"species": "cat",
"origin": "Scotland",
"temperament": [
"Adaptable",
"Sweet",
"Gentle"
],
"lifeExpectancyYears": 13,
"isHypoallergenic": false,
"createdAt": "2022-08-13T23:33:59.740Z"
}