pets / #199
- ownerUserId
- 201
- name
- Amari
- species
- dog
- breedId
- —
- gender
- male
- birthDate
- —
- weightKg
- 56.1
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-199/600/600
- createdAt
- updatedAt
Component variants
Medium
Amari
#199
Small
pets/199 curl -sS \
"https://example-data.com/api/v1/pets/199" \
-H "Accept: application/json"const res = await fetch(
"https://example-data.com/api/v1/pets/199"
);
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/199"
);
const pet = (await res.json()) as Pet;import requests
res = requests.get(
"https://example-data.com/api/v1/pets/199"
)
pet = res.json() {
"id": 199,
"ownerUserId": 201,
"name": "Amari",
"species": "dog",
"breedId": null,
"gender": "male",
"birthDate": null,
"weightKg": 56.1,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-199/600/600",
"createdAt": "2018-09-19T18:31:23.078Z",
"updatedAt": "2021-03-02T00:45:23.643Z"
}