example-data.com

pets / #51

ownerUserId
57
name
Arnoldo
species
dog
breedId
19
gender
male
birthDate
weightKg
18.1
color
White
imageUrl
https://picsum.photos/seed/pet-51/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/51"
)
pet = res.json()
{
  "id": 51,
  "ownerUserId": 57,
  "name": "Arnoldo",
  "species": "dog",
  "breedId": 19,
  "gender": "male",
  "birthDate": null,
  "weightKg": 18.1,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-51/600/600",
  "createdAt": "2011-10-10T03:43:54.016Z",
  "updatedAt": "2019-10-20T22:39:45.524Z"
}
Draftbit