pets / #16
- ownerUserId
- 17
- name
- Theresia
- species
- bird
- breedId
- 57
- gender
- female
- birthDate
- 2020-12-26
- weightKg
- 0.55
- color
- Green
- imageUrl
- https://picsum.photos/seed/pet-16/600/600
- createdAt
- updatedAt
Component variants
Medium
Theresia
#16
Small
pets/16 curl -sS \
"https://example-data.com/api/v1/pets/16" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/16"
);
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/16"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/16"
)
pet = res.json() {
"id": 16,
"ownerUserId": 17,
"name": "Theresia",
"species": "bird",
"breedId": 57,
"gender": "female",
"birthDate": "2020-12-26",
"weightKg": 0.55,
"color": "Green",
"imageUrl": "https://picsum.photos/seed/pet-16/600/600",
"createdAt": "2013-12-24T19:48:39.319Z",
"updatedAt": "2024-07-29T08:59:15.603Z"
}