pets / #127
- ownerUserId
- 135
- name
- Alize
- species
- rabbit
- breedId
- 54
- gender
- male
- birthDate
- 2018-02-14
- weightKg
- 2.5
- color
- White
- imageUrl
- https://picsum.photos/seed/pet-127/600/600
- createdAt
- updatedAt
Component variants
Medium
Alize
#127
Small
pets/127 curl -sS \
"https://example-data.com/api/v1/pets/127" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/127"
);
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/127"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/127"
)
pet = res.json() {
"id": 127,
"ownerUserId": 135,
"name": "Alize",
"species": "rabbit",
"breedId": 54,
"gender": "male",
"birthDate": "2018-02-14",
"weightKg": 2.5,
"color": "White",
"imageUrl": "https://picsum.photos/seed/pet-127/600/600",
"createdAt": "2017-10-25T09:46:09.262Z",
"updatedAt": "2020-03-30T13:36:47.587Z"
}