example-data.com

pets / #90

ownerUserId
106
name
Valerie
species
cat
breedId
38
gender
unknown
birthDate
2020-07-27
weightKg
7.4
color
White
imageUrl
https://picsum.photos/seed/pet-90/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/90"
)
pet = res.json()
{
  "id": 90,
  "ownerUserId": 106,
  "name": "Valerie",
  "species": "cat",
  "breedId": 38,
  "gender": "unknown",
  "birthDate": "2020-07-27",
  "weightKg": 7.4,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-90/600/600",
  "createdAt": "2014-04-26T18:24:22.927Z",
  "updatedAt": "2020-06-02T14:11:50.716Z"
}
Draftbit