pets / #177
- ownerUserId
- 182
- name
- Brannon
- species
- dog
- breedId
- 26
- gender
- female
- birthDate
- —
- weightKg
- 35.7
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-177/600/600
- createdAt
- updatedAt
Component variants
Medium
Brannon
#177
Small
pets/177 curl -sS \
"https://example-data.com/api/v1/pets/177" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/177"
);
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/177"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/177"
)
pet = res.json() {
"id": 177,
"ownerUserId": 182,
"name": "Brannon",
"species": "dog",
"breedId": 26,
"gender": "female",
"birthDate": null,
"weightKg": 35.7,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-177/600/600",
"createdAt": "2013-11-14T20:35:19.171Z",
"updatedAt": "2014-10-02T14:24:04.508Z"
}