Vizsla
dog · Hungary
curl -sS \
"https://example-data.com/api/v1/pet-breeds/28" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pet-breeds/28"
);
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/28"
);
const petBreed = (await res.json()) as PetBreed;import requests
res = requests.get(
"https://example-data.com/api/v1/pet-breeds/28"
)
pet_breed = res.json() {
"id": 28,
"name": "Vizsla",
"slug": "vizsla",
"species": "dog",
"origin": "Hungary",
"temperament": [
"Affectionate",
"Energetic",
"Gentle"
],
"lifeExpectancyYears": 13,
"isHypoallergenic": false,
"createdAt": "2021-07-30T10:04:27.492Z"
}