example-data.com

pets / #29

ownerUserId
37
name
Yasmin
species
bird
breedId
61
gender
unknown
birthDate
2020-05-28
weightKg
0.57
color
White
imageUrl
https://picsum.photos/seed/pet-29/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/29"
)
pet = res.json()
{
  "id": 29,
  "ownerUserId": 37,
  "name": "Yasmin",
  "species": "bird",
  "breedId": 61,
  "gender": "unknown",
  "birthDate": "2020-05-28",
  "weightKg": 0.57,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-29/600/600",
  "createdAt": "2020-08-31T22:15:54.158Z",
  "updatedAt": "2021-02-04T06:29:35.906Z"
}
Draftbit