example-data.com

pets / #92

ownerUserId
108
name
Treva
species
cat
breedId
32
gender
female
birthDate
weightKg
5.8
color
Black
imageUrl
https://picsum.photos/seed/pet-92/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/92"
)
pet = res.json()
{
  "id": 92,
  "ownerUserId": 108,
  "name": "Treva",
  "species": "cat",
  "breedId": 32,
  "gender": "female",
  "birthDate": null,
  "weightKg": 5.8,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-92/600/600",
  "createdAt": "2015-11-08T03:00:19.211Z",
  "updatedAt": "2018-10-24T14:29:59.509Z"
}
Draftbit