example-data.com

pets / #36

ownerUserId
43
name
Mohammed
species
cat
breedId
32
gender
unknown
birthDate
weightKg
5.2
color
Orange
imageUrl
https://picsum.photos/seed/pet-36/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/36"
)
pet = res.json()
{
  "id": 36,
  "ownerUserId": 43,
  "name": "Mohammed",
  "species": "cat",
  "breedId": 32,
  "gender": "unknown",
  "birthDate": null,
  "weightKg": 5.2,
  "color": "Orange",
  "imageUrl": "https://picsum.photos/seed/pet-36/600/600",
  "createdAt": "2018-08-29T09:51:26.110Z",
  "updatedAt": "2020-02-15T14:05:12.616Z"
}
Draftbit