example-data.com

pets / #65

ownerUserId
73
name
Enola
species
reptile
breedId
gender
male
birthDate
2015-10-17
weightKg
7.5
color
Tan
imageUrl
https://picsum.photos/seed/pet-65/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/65"
)
pet = res.json()
{
  "id": 65,
  "ownerUserId": 73,
  "name": "Enola",
  "species": "reptile",
  "breedId": null,
  "gender": "male",
  "birthDate": "2015-10-17",
  "weightKg": 7.5,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-65/600/600",
  "createdAt": "2018-03-28T19:34:51.854Z",
  "updatedAt": "2024-05-12T11:29:03.212Z"
}
Draftbit