example-data.com

pets / #146

ownerUserId
155
name
Herta
species
cat
breedId
41
gender
female
birthDate
2012-04-14
weightKg
2.4
color
Tuxedo
imageUrl
https://picsum.photos/seed/pet-146/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/146"
)
pet = res.json()
{
  "id": 146,
  "ownerUserId": 155,
  "name": "Herta",
  "species": "cat",
  "breedId": 41,
  "gender": "female",
  "birthDate": "2012-04-14",
  "weightKg": 2.4,
  "color": "Tuxedo",
  "imageUrl": "https://picsum.photos/seed/pet-146/600/600",
  "createdAt": "2016-03-02T07:51:26.216Z",
  "updatedAt": "2019-04-08T07:24:13.897Z"
}
Draftbit