pets / #55
- ownerUserId
- 63
- name
- Valentin
- species
- dog
- breedId
- 11
- gender
- unknown
- birthDate
- —
- weightKg
- 42.8
- color
- Golden
- imageUrl
- https://picsum.photos/seed/pet-55/600/600
- createdAt
- updatedAt
Component variants
Medium
Valentin
#55
Small
pets/55 curl -sS \
"https://example-data.com/api/v1/pets/55" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/55"
);
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/55"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/55"
)
pet = res.json() {
"id": 55,
"ownerUserId": 63,
"name": "Valentin",
"species": "dog",
"breedId": 11,
"gender": "unknown",
"birthDate": null,
"weightKg": 42.8,
"color": "Golden",
"imageUrl": "https://picsum.photos/seed/pet-55/600/600",
"createdAt": "2023-08-23T02:47:09.180Z",
"updatedAt": "2024-08-23T16:36:33.326Z"
}