example-data.com

pets / #38

ownerUserId
44
name
Maia
species
dog
breedId
26
gender
unknown
birthDate
2019-04-15
weightKg
64.3
color
Brindle
imageUrl
https://picsum.photos/seed/pet-38/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/38"
)
pet = res.json()
{
  "id": 38,
  "ownerUserId": 44,
  "name": "Maia",
  "species": "dog",
  "breedId": 26,
  "gender": "unknown",
  "birthDate": "2019-04-15",
  "weightKg": 64.3,
  "color": "Brindle",
  "imageUrl": "https://picsum.photos/seed/pet-38/600/600",
  "createdAt": "2019-06-03T01:42:26.533Z",
  "updatedAt": "2023-07-23T13:00:26.851Z"
}
Draftbit