example-data.com

pets / #47

ownerUserId
53
name
Alvera
species
bird
breedId
gender
female
birthDate
2022-08-04
weightKg
0.03
color
Yellow
imageUrl
https://picsum.photos/seed/pet-47/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/47"
)
pet = res.json()
{
  "id": 47,
  "ownerUserId": 53,
  "name": "Alvera",
  "species": "bird",
  "breedId": null,
  "gender": "female",
  "birthDate": "2022-08-04",
  "weightKg": 0.03,
  "color": "Yellow",
  "imageUrl": "https://picsum.photos/seed/pet-47/600/600",
  "createdAt": "2015-08-30T15:14:07.812Z",
  "updatedAt": "2020-03-13T02:49:02.846Z"
}
Draftbit