pets / #46
- ownerUserId
- 51
- name
- Ike
- species
- dog
- breedId
- —
- gender
- unknown
- birthDate
- 2024-02-04
- weightKg
- 2.7
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-46/600/600
- createdAt
- updatedAt
Component variants
curl -sS \
"https://example-data.com/api/v1/pets/46" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/46"
);
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/46"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/46"
)
pet = res.json() {
"id": 46,
"ownerUserId": 51,
"name": "Ike",
"species": "dog",
"breedId": null,
"gender": "unknown",
"birthDate": "2024-02-04",
"weightKg": 2.7,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-46/600/600",
"createdAt": "2012-08-14T11:31:16.646Z",
"updatedAt": "2016-07-29T10:09:03.419Z"
}