pets / #12
- ownerUserId
- 11
- name
- Noel
- species
- cat
- breedId
- 48
- gender
- male
- birthDate
- —
- weightKg
- 2.8
- color
- Tuxedo
- imageUrl
- https://picsum.photos/seed/pet-12/600/600
- createdAt
- updatedAt
Component variants
curl -sS \
"https://example-data.com/api/v1/pets/12" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/12"
);
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/12"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/12"
)
pet = res.json() {
"id": 12,
"ownerUserId": 11,
"name": "Noel",
"species": "cat",
"breedId": 48,
"gender": "male",
"birthDate": null,
"weightKg": 2.8,
"color": "Tuxedo",
"imageUrl": "https://picsum.photos/seed/pet-12/600/600",
"createdAt": "2019-08-25T07:29:21.618Z",
"updatedAt": "2024-02-02T20:21:43.974Z"
}