pets / #196
- ownerUserId
- 199
- name
- Shannon
- species
- bird
- breedId
- 58
- gender
- female
- birthDate
- 2012-12-20
- weightKg
- 1.29
- color
- Yellow
- imageUrl
- https://picsum.photos/seed/pet-196/600/600
- createdAt
- updatedAt
Component variants
Medium
Shannon
#196
Small
pets/196 curl -sS \
"https://example-data.com/api/v1/pets/196" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/196"
);
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/196"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/196"
)
pet = res.json() {
"id": 196,
"ownerUserId": 199,
"name": "Shannon",
"species": "bird",
"breedId": 58,
"gender": "female",
"birthDate": "2012-12-20",
"weightKg": 1.29,
"color": "Yellow",
"imageUrl": "https://picsum.photos/seed/pet-196/600/600",
"createdAt": "2022-10-28T22:24:56.482Z",
"updatedAt": "2023-05-07T16:56:09.635Z"
}