example-data.com

pets / #101

ownerUserId
115
name
Liliana
species
dog
breedId
6
gender
unknown
birthDate
2015-03-27
weightKg
69.3
color
Tan
imageUrl
https://picsum.photos/seed/pet-101/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/101"
)
pet = res.json()
{
  "id": 101,
  "ownerUserId": 115,
  "name": "Liliana",
  "species": "dog",
  "breedId": 6,
  "gender": "unknown",
  "birthDate": "2015-03-27",
  "weightKg": 69.3,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-101/600/600",
  "createdAt": "2022-09-28T19:26:27.830Z",
  "updatedAt": "2023-07-15T18:00:40.462Z"
}
Draftbit