example-data.com

pets / #112

ownerUserId
122
name
Imani
species
other
breedId
gender
unknown
birthDate
2024-12-01
weightKg
1.68
color
White
imageUrl
https://picsum.photos/seed/pet-112/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/112"
)
pet = res.json()
{
  "id": 112,
  "ownerUserId": 122,
  "name": "Imani",
  "species": "other",
  "breedId": null,
  "gender": "unknown",
  "birthDate": "2024-12-01",
  "weightKg": 1.68,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-112/600/600",
  "createdAt": "2014-06-24T21:50:01.437Z",
  "updatedAt": "2023-09-16T07:48:55.169Z"
}
Draftbit