pets / #80
- ownerUserId
- 94
- name
- Savion
- species
- bird
- breedId
- —
- gender
- unknown
- birthDate
- —
- weightKg
- 0.14
- color
- Yellow
- imageUrl
- https://picsum.photos/seed/pet-80/600/600
- createdAt
- updatedAt
Component variants
Medium
Savion
#80
Small
pets/80 curl -sS \
"https://example-data.com/api/v1/pets/80" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/80"
);
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/80"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/80"
)
pet = res.json() {
"id": 80,
"ownerUserId": 94,
"name": "Savion",
"species": "bird",
"breedId": null,
"gender": "unknown",
"birthDate": null,
"weightKg": 0.14,
"color": "Yellow",
"imageUrl": "https://picsum.photos/seed/pet-80/600/600",
"createdAt": "2016-02-16T20:55:06.053Z",
"updatedAt": "2016-09-06T00:43:49.005Z"
}