example-data.com

pets / #72

ownerUserId
81
name
Harold
species
dog
breedId
1
gender
unknown
birthDate
2016-07-01
weightKg
53.1
color
Black
imageUrl
https://picsum.photos/seed/pet-72/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/72"
)
pet = res.json()
{
  "id": 72,
  "ownerUserId": 81,
  "name": "Harold",
  "species": "dog",
  "breedId": 1,
  "gender": "unknown",
  "birthDate": "2016-07-01",
  "weightKg": 53.1,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-72/600/600",
  "createdAt": "2015-12-21T13:25:19.754Z",
  "updatedAt": "2017-07-10T00:02:31.432Z"
}
Draftbit