example-data.com

pets / #106

ownerUserId
119
name
Casimer
species
cat
breedId
gender
female
birthDate
2023-10-21
weightKg
4.9
color
White
imageUrl
https://picsum.photos/seed/pet-106/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/106"
)
pet = res.json()
{
  "id": 106,
  "ownerUserId": 119,
  "name": "Casimer",
  "species": "cat",
  "breedId": null,
  "gender": "female",
  "birthDate": "2023-10-21",
  "weightKg": 4.9,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-106/600/600",
  "createdAt": "2012-04-22T12:34:30.619Z",
  "updatedAt": "2013-10-11T04:52:40.167Z"
}
Draftbit