Cornish Rex
cat · United Kingdom
curl -sS \
"https://example-data.com/api/v1/pet-breeds/50" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/50"
);
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/50"
);
const petBreed = (await res.json()) as PetBreed;import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/50"
)
pet_breed = res.json() {
"id": 50,
"name": "Cornish Rex",
"slug": "cornish-rex",
"species": "cat",
"origin": "United Kingdom",
"temperament": [
"Affectionate",
"Athletic",
"Inquisitive"
],
"lifeExpectancyYears": 14,
"isHypoallergenic": true,
"createdAt": "2022-02-26T11:04:30.895Z"
}