example-data.com

pets / #54

ownerUserId
61
name
Name
species
reptile
breedId
gender
unknown
birthDate
weightKg
8.8
color
Green
imageUrl
https://picsum.photos/seed/pet-54/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/54"
)
pet = res.json()
{
  "id": 54,
  "ownerUserId": 61,
  "name": "Name",
  "species": "reptile",
  "breedId": null,
  "gender": "unknown",
  "birthDate": null,
  "weightKg": 8.8,
  "color": "Green",
  "imageUrl": "https://picsum.photos/seed/pet-54/600/600",
  "createdAt": "2015-07-26T17:45:45.695Z",
  "updatedAt": "2021-01-30T01:07:16.074Z"
}
Draftbit