pets / #18
- ownerUserId
- 25
- name
- Kevin
- species
- rabbit
- breedId
- —
- gender
- unknown
- birthDate
- 2016-07-11
- weightKg
- 5.5
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-18/600/600
- createdAt
- updatedAt
Component variants
curl -sS \
"https://example-data.com/api/v1/pets/18" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/18"
);
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/18"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/18"
)
pet = res.json() {
"id": 18,
"ownerUserId": 25,
"name": "Kevin",
"species": "rabbit",
"breedId": null,
"gender": "unknown",
"birthDate": "2016-07-11",
"weightKg": 5.5,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-18/600/600",
"createdAt": "2015-04-21T20:36:30.542Z",
"updatedAt": "2020-12-28T08:30:16.266Z"
}