pets / #166
- ownerUserId
- 175
- name
- Dorian
- species
- dog
- breedId
- 2
- gender
- male
- birthDate
- 2015-05-28
- weightKg
- 58.1
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-166/600/600
- createdAt
- updatedAt
Component variants
Medium
Dorian
#166
Small
pets/166 curl -sS \
"https://example-data.com/api/v1/pets/166" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/166"
);
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/166"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/166"
)
pet = res.json() {
"id": 166,
"ownerUserId": 175,
"name": "Dorian",
"species": "dog",
"breedId": 2,
"gender": "male",
"birthDate": "2015-05-28",
"weightKg": 58.1,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-166/600/600",
"createdAt": "2012-06-30T03:55:58.606Z",
"updatedAt": "2015-08-17T01:14:56.560Z"
}