example-data.com

pets / #136

ownerUserId
147
name
Dion
species
cat
breedId
46
gender
unknown
birthDate
2016-02-01
weightKg
4.6
color
Tabby
imageUrl
https://picsum.photos/seed/pet-136/600/600
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/pets/136" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/pets/136"
);
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/136"
);
const pet = (await res.json()) as Pet;
import requests

res = requests.get(
    "https://example-data.com/api/v1/pets/136"
)
pet = res.json()
{
  "id": 136,
  "ownerUserId": 147,
  "name": "Dion",
  "species": "cat",
  "breedId": 46,
  "gender": "unknown",
  "birthDate": "2016-02-01",
  "weightKg": 4.6,
  "color": "Tabby",
  "imageUrl": "https://picsum.photos/seed/pet-136/600/600",
  "createdAt": "2022-06-22T05:12:26.963Z",
  "updatedAt": "2023-06-20T08:05:27.494Z"
}
Draftbit