pets / #59
- ownerUserId
- 68
- name
- Gardner
- species
- dog
- breedId
- 11
- gender
- unknown
- birthDate
- 2016-01-28
- weightKg
- 35.9
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-59/600/600
- createdAt
- updatedAt
Component variants
Medium
Gardner
#59
Small
pets/59 curl -sS \
"https://example-data.com/api/v1/pets/59" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/59"
);
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/59"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/59"
)
pet = res.json() {
"id": 59,
"ownerUserId": 68,
"name": "Gardner",
"species": "dog",
"breedId": 11,
"gender": "unknown",
"birthDate": "2016-01-28",
"weightKg": 35.9,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-59/600/600",
"createdAt": "2019-04-01T18:37:08.026Z",
"updatedAt": "2020-10-30T03:44:01.524Z"
}