example-data.com

pets / #181

ownerUserId
186
name
Gunnar
species
cat
breedId
41
gender
female
birthDate
weightKg
4.4
color
Calico
imageUrl
https://picsum.photos/seed/pet-181/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/181"
)
pet = res.json()
{
  "id": 181,
  "ownerUserId": 186,
  "name": "Gunnar",
  "species": "cat",
  "breedId": 41,
  "gender": "female",
  "birthDate": null,
  "weightKg": 4.4,
  "color": "Calico",
  "imageUrl": "https://picsum.photos/seed/pet-181/600/600",
  "createdAt": "2020-01-23T18:04:54.259Z",
  "updatedAt": "2023-03-03T17:25:43.356Z"
}
Draftbit