pets / #147
- ownerUserId
- 156
- name
- Morton
- species
- dog
- breedId
- 10
- gender
- male
- birthDate
- 2022-07-13
- weightKg
- 9.9
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-147/600/600
- createdAt
- updatedAt
Component variants
Medium
Morton
#147
Small
pets/147 curl -sS \
"https://example-data.com/api/v1/pets/147" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/147"
);
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/147"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/147"
)
pet = res.json() {
"id": 147,
"ownerUserId": 156,
"name": "Morton",
"species": "dog",
"breedId": 10,
"gender": "male",
"birthDate": "2022-07-13",
"weightKg": 9.9,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-147/600/600",
"createdAt": "2016-08-26T18:05:43.735Z",
"updatedAt": "2018-03-11T15:35:46.285Z"
}