example-data.com

pets / #79

ownerUserId
93
name
Jaquan
species
bird
breedId
61
gender
female
birthDate
2022-03-04
weightKg
1.44
color
White
imageUrl
https://picsum.photos/seed/pet-79/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/79"
)
pet = res.json()
{
  "id": 79,
  "ownerUserId": 93,
  "name": "Jaquan",
  "species": "bird",
  "breedId": 61,
  "gender": "female",
  "birthDate": "2022-03-04",
  "weightKg": 1.44,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-79/600/600",
  "createdAt": "2021-11-12T01:54:29.637Z",
  "updatedAt": "2023-12-01T20:06:15.356Z"
}
Draftbit