pets / #28
- ownerUserId
- 36
- name
- Johnny
- species
- cat
- breedId
- 44
- gender
- male
- birthDate
- 2020-08-22
- weightKg
- 2.4
- color
- Tuxedo
- imageUrl
- https://picsum.photos/seed/pet-28/600/600
- createdAt
- updatedAt
Component variants
Medium
Johnny
#28
Small
pets/28 curl -sS \
"https://example-data.com/api/v1/pets/28" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/28"
);
const pet = await res.json();import type { Pet } from "https://example-data.com/types/pets.d.ts";
const res = await fetch(
"https://example-data.com/api/v1/pets/28"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/28"
)
pet = res.json() {
"id": 28,
"ownerUserId": 36,
"name": "Johnny",
"species": "cat",
"breedId": 44,
"gender": "male",
"birthDate": "2020-08-22",
"weightKg": 2.4,
"color": "Tuxedo",
"imageUrl": "https://picsum.photos/seed/pet-28/600/600",
"createdAt": "2015-08-08T08:59:06.937Z",
"updatedAt": "2019-11-05T06:47:20.707Z"
}