example-data.com

pets / #180

ownerUserId
185
name
Brayan
species
bird
breedId
58
gender
male
birthDate
2014-05-20
weightKg
0.88
color
Yellow
imageUrl
https://picsum.photos/seed/pet-180/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/180"
)
pet = res.json()
{
  "id": 180,
  "ownerUserId": 185,
  "name": "Brayan",
  "species": "bird",
  "breedId": 58,
  "gender": "male",
  "birthDate": "2014-05-20",
  "weightKg": 0.88,
  "color": "Yellow",
  "imageUrl": "https://picsum.photos/seed/pet-180/600/600",
  "createdAt": "2020-03-28T19:22:49.734Z",
  "updatedAt": "2022-08-27T08:32:03.212Z"
}
Draftbit