example-data.com

pets / #73

ownerUserId
81
name
Manley
species
fish
breedId
gender
male
birthDate
2016-12-12
weightKg
0.08
color
Gold
imageUrl
https://picsum.photos/seed/pet-73/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/73"
)
pet = res.json()
{
  "id": 73,
  "ownerUserId": 81,
  "name": "Manley",
  "species": "fish",
  "breedId": null,
  "gender": "male",
  "birthDate": "2016-12-12",
  "weightKg": 0.08,
  "color": "Gold",
  "imageUrl": "https://picsum.photos/seed/pet-73/600/600",
  "createdAt": "2017-07-07T07:03:50.310Z",
  "updatedAt": "2020-03-24T05:06:42.953Z"
}
Draftbit