example-data.com

pets / #128

ownerUserId
138
name
Alaina
species
reptile
breedId
71
gender
male
birthDate
weightKg
3.6
color
Spotted
imageUrl
https://picsum.photos/seed/pet-128/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/128"
)
pet = res.json()
{
  "id": 128,
  "ownerUserId": 138,
  "name": "Alaina",
  "species": "reptile",
  "breedId": 71,
  "gender": "male",
  "birthDate": null,
  "weightKg": 3.6,
  "color": "Spotted",
  "imageUrl": "https://picsum.photos/seed/pet-128/600/600",
  "createdAt": "2022-12-24T18:04:50.755Z",
  "updatedAt": "2023-07-14T08:55:20.901Z"
}
Draftbit