pets / #132
- ownerUserId
- 140
- name
- Travis
- species
- fish
- breedId
- 63
- gender
- male
- birthDate
- 2013-10-11
- weightKg
- 0.41
- color
- Silver
- imageUrl
- https://picsum.photos/seed/pet-132/600/600
- createdAt
- updatedAt
Component variants
Medium
Travis
#132
Small
pets/132 curl -sS \
"https://example-data.com/api/v1/pets/132" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/132"
);
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/132"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/132"
)
pet = res.json() {
"id": 132,
"ownerUserId": 140,
"name": "Travis",
"species": "fish",
"breedId": 63,
"gender": "male",
"birthDate": "2013-10-11",
"weightKg": 0.41,
"color": "Silver",
"imageUrl": "https://picsum.photos/seed/pet-132/600/600",
"createdAt": "2017-12-15T02:01:56.358Z",
"updatedAt": "2019-03-23T17:51:44.481Z"
}