example-data.com

pets / #152

ownerUserId
158
name
Dorcas
species
bird
breedId
57
gender
male
birthDate
2017-10-04
weightKg
1.43
color
Multi-color
imageUrl
https://picsum.photos/seed/pet-152/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/152"
)
pet = res.json()
{
  "id": 152,
  "ownerUserId": 158,
  "name": "Dorcas",
  "species": "bird",
  "breedId": 57,
  "gender": "male",
  "birthDate": "2017-10-04",
  "weightKg": 1.43,
  "color": "Multi-color",
  "imageUrl": "https://picsum.photos/seed/pet-152/600/600",
  "createdAt": "2018-01-12T00:09:12.895Z",
  "updatedAt": "2022-11-06T01:06:05.950Z"
}
Draftbit