pets / #48
- ownerUserId
- 53
- name
- Lelia
- species
- dog
- breedId
- 10
- gender
- male
- birthDate
- 2011-08-07
- weightKg
- 6.4
- color
- Brindle
- imageUrl
- https://picsum.photos/seed/pet-48/600/600
- createdAt
- updatedAt
Component variants
curl -sS \
"https://example-data.com/api/v1/pets/48" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/48"
);
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/48"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/48"
)
pet = res.json() {
"id": 48,
"ownerUserId": 53,
"name": "Lelia",
"species": "dog",
"breedId": 10,
"gender": "male",
"birthDate": "2011-08-07",
"weightKg": 6.4,
"color": "Brindle",
"imageUrl": "https://picsum.photos/seed/pet-48/600/600",
"createdAt": "2018-12-30T03:14:38.939Z",
"updatedAt": "2021-03-05T21:47:19.079Z"
}