pets / #142
- ownerUserId
- 150
- name
- Cierra
- species
- rabbit
- breedId
- —
- gender
- male
- birthDate
- 2018-05-19
- weightKg
- 0.9
- color
- Spotted
- imageUrl
- https://picsum.photos/seed/pet-142/600/600
- createdAt
- updatedAt
Component variants
Medium
Cierra
#142
Small
pets/142 curl -sS \
"https://example-data.com/api/v1/pets/142" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/142"
);
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/142"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/142"
)
pet = res.json() {
"id": 142,
"ownerUserId": 150,
"name": "Cierra",
"species": "rabbit",
"breedId": null,
"gender": "male",
"birthDate": "2018-05-19",
"weightKg": 0.9,
"color": "Spotted",
"imageUrl": "https://picsum.photos/seed/pet-142/600/600",
"createdAt": "2015-02-15T02:36:55.615Z",
"updatedAt": "2021-08-16T12:22:29.422Z"
}