example-data.com

pets / #77

ownerUserId
87
name
Niko
species
cat
breedId
45
gender
female
birthDate
2014-11-10
weightKg
2.5
color
Tuxedo
imageUrl
https://picsum.photos/seed/pet-77/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/77"
)
pet = res.json()
{
  "id": 77,
  "ownerUserId": 87,
  "name": "Niko",
  "species": "cat",
  "breedId": 45,
  "gender": "female",
  "birthDate": "2014-11-10",
  "weightKg": 2.5,
  "color": "Tuxedo",
  "imageUrl": "https://picsum.photos/seed/pet-77/600/600",
  "createdAt": "2013-12-08T17:39:24.421Z",
  "updatedAt": "2017-11-27T07:56:56.312Z"
}
Draftbit