pets / #137
- ownerUserId
- 148
- name
- Garth
- species
- cat
- breedId
- 39
- gender
- male
- birthDate
- 2015-09-03
- weightKg
- 3.5
- color
- Tabby
- imageUrl
- https://picsum.photos/seed/pet-137/600/600
- createdAt
- updatedAt
Component variants
Medium
Garth
#137
Small
pets/137 curl -sS \
"https://example-data.com/api/v1/pets/137" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/137"
);
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/137"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/137"
)
pet = res.json() {
"id": 137,
"ownerUserId": 148,
"name": "Garth",
"species": "cat",
"breedId": 39,
"gender": "male",
"birthDate": "2015-09-03",
"weightKg": 3.5,
"color": "Tabby",
"imageUrl": "https://picsum.photos/seed/pet-137/600/600",
"createdAt": "2023-03-08T21:49:30.574Z",
"updatedAt": "2024-02-26T05:16:49.940Z"
}