pets / #91
- ownerUserId
- 106
- name
- Yolanda
- species
- cat
- breedId
- —
- gender
- male
- birthDate
- 2020-03-31
- weightKg
- 6.3
- color
- Tortoiseshell
- imageUrl
- https://picsum.photos/seed/pet-91/600/600
- createdAt
- updatedAt
Component variants
Medium
Yolanda
#91
Small
pets/91 curl -sS \
"https://example-data.com/api/v1/pets/91" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/91"
);
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/91"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/91"
)
pet = res.json() {
"id": 91,
"ownerUserId": 106,
"name": "Yolanda",
"species": "cat",
"breedId": null,
"gender": "male",
"birthDate": "2020-03-31",
"weightKg": 6.3,
"color": "Tortoiseshell",
"imageUrl": "https://picsum.photos/seed/pet-91/600/600",
"createdAt": "2011-07-19T17:53:26.415Z",
"updatedAt": "2024-01-24T18:44:08.368Z"
}