example-data.com

pets / #86

ownerUserId
100
name
Liam
species
dog
breedId
13
gender
female
birthDate
2018-01-10
weightKg
20.5
color
Tan
imageUrl
https://picsum.photos/seed/pet-86/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/86"
)
pet = res.json()
{
  "id": 86,
  "ownerUserId": 100,
  "name": "Liam",
  "species": "dog",
  "breedId": 13,
  "gender": "female",
  "birthDate": "2018-01-10",
  "weightKg": 20.5,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-86/600/600",
  "createdAt": "2018-10-16T09:41:32.715Z",
  "updatedAt": "2024-02-09T05:29:28.966Z"
}
Draftbit