example-data.com

pets / #134

ownerUserId
142
name
Emelie
species
cat
breedId
gender
male
birthDate
2012-07-25
weightKg
4.8
color
Tortoiseshell
imageUrl
https://picsum.photos/seed/pet-134/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/134"
)
pet = res.json()
{
  "id": 134,
  "ownerUserId": 142,
  "name": "Emelie",
  "species": "cat",
  "breedId": null,
  "gender": "male",
  "birthDate": "2012-07-25",
  "weightKg": 4.8,
  "color": "Tortoiseshell",
  "imageUrl": "https://picsum.photos/seed/pet-134/600/600",
  "createdAt": "2018-08-04T07:02:36.314Z",
  "updatedAt": "2019-01-18T18:18:27.366Z"
}
Draftbit