pets / #25
- ownerUserId
- 33
- name
- Juston
- species
- bird
- breedId
- —
- gender
- unknown
- birthDate
- 2017-08-19
- weightKg
- 0.57
- color
- Multi-color
- imageUrl
- https://picsum.photos/seed/pet-25/600/600
- createdAt
- updatedAt
Component variants
Medium
Juston
#25
Small
pets/25 curl -sS \
"https://example-data.com/api/v1/pets/25" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/25"
);
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/25"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/25"
)
pet = res.json() {
"id": 25,
"ownerUserId": 33,
"name": "Juston",
"species": "bird",
"breedId": null,
"gender": "unknown",
"birthDate": "2017-08-19",
"weightKg": 0.57,
"color": "Multi-color",
"imageUrl": "https://picsum.photos/seed/pet-25/600/600",
"createdAt": "2011-08-07T23:19:58.889Z",
"updatedAt": "2024-04-11T23:52:58.974Z"
}