example-data.com

pets / #187

ownerUserId
192
name
Fredy
species
fish
breedId
62
gender
female
birthDate
weightKg
0.05
color
Black
imageUrl
https://picsum.photos/seed/pet-187/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/187"
)
pet = res.json()
{
  "id": 187,
  "ownerUserId": 192,
  "name": "Fredy",
  "species": "fish",
  "breedId": 62,
  "gender": "female",
  "birthDate": null,
  "weightKg": 0.05,
  "color": "Black",
  "imageUrl": "https://picsum.photos/seed/pet-187/600/600",
  "createdAt": "2014-05-15T19:19:30.966Z",
  "updatedAt": "2022-10-03T07:27:28.481Z"
}
Draftbit