pets / #95
- ownerUserId
- 110
- name
- Aylin
- species
- cat
- breedId
- 48
- gender
- unknown
- birthDate
- 2020-02-12
- weightKg
- 3.2
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-95/600/600
- createdAt
- updatedAt
Component variants
curl -sS \
"https://example-data.com/api/v1/pets/95" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/95"
);
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/95"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/95"
)
pet = res.json() {
"id": 95,
"ownerUserId": 110,
"name": "Aylin",
"species": "cat",
"breedId": 48,
"gender": "unknown",
"birthDate": "2020-02-12",
"weightKg": 3.2,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-95/600/600",
"createdAt": "2018-12-25T09:20:31.839Z",
"updatedAt": "2020-05-29T10:23:43.019Z"
}