example-data.com

pets / #21

ownerUserId
29
name
Glenda
species
bird
breedId
gender
unknown
birthDate
2013-01-16
weightKg
1.27
color
Multi-color
imageUrl
https://picsum.photos/seed/pet-21/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/21"
)
pet = res.json()
{
  "id": 21,
  "ownerUserId": 29,
  "name": "Glenda",
  "species": "bird",
  "breedId": null,
  "gender": "unknown",
  "birthDate": "2013-01-16",
  "weightKg": 1.27,
  "color": "Multi-color",
  "imageUrl": "https://picsum.photos/seed/pet-21/600/600",
  "createdAt": "2016-05-16T16:05:34.566Z",
  "updatedAt": "2020-10-20T15:21:53.987Z"
}
Draftbit