pets / #107
- ownerUserId
- 120
- name
- Harley
- species
- dog
- breedId
- 5
- gender
- unknown
- birthDate
- 2023-02-09
- weightKg
- 52.9
- color
- Golden
- imageUrl
- https://picsum.photos/seed/pet-107/600/600
- createdAt
- updatedAt
Component variants
Medium
Harley
#107
Small
pets/107 curl -sS \
"https://example-data.com/api/v1/pets/107" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/107"
);
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/107"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/107"
)
pet = res.json() {
"id": 107,
"ownerUserId": 120,
"name": "Harley",
"species": "dog",
"breedId": 5,
"gender": "unknown",
"birthDate": "2023-02-09",
"weightKg": 52.9,
"color": "Golden",
"imageUrl": "https://picsum.photos/seed/pet-107/600/600",
"createdAt": "2019-10-15T08:50:13.206Z",
"updatedAt": "2020-07-06T07:49:58.899Z"
}