pets / #188
- ownerUserId
- 193
- name
- Margaretta
- species
- dog
- breedId
- 5
- gender
- unknown
- birthDate
- 2020-01-23
- weightKg
- 50.8
- color
- Golden
- imageUrl
- https://picsum.photos/seed/pet-188/600/600
- createdAt
- updatedAt
Component variants
Medium
Margaretta
#188
Small
pets/188 curl -sS \
"https://example-data.com/api/v1/pets/188" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/188"
);
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/188"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/188"
)
pet = res.json() {
"id": 188,
"ownerUserId": 193,
"name": "Margaretta",
"species": "dog",
"breedId": 5,
"gender": "unknown",
"birthDate": "2020-01-23",
"weightKg": 50.8,
"color": "Golden",
"imageUrl": "https://picsum.photos/seed/pet-188/600/600",
"createdAt": "2012-04-19T18:52:34.550Z",
"updatedAt": "2019-05-31T19:28:50.733Z"
}