example-data.com

pets / #71

ownerUserId
79
name
Ervin
species
dog
breedId
22
gender
male
birthDate
weightKg
45.9
color
White
imageUrl
https://picsum.photos/seed/pet-71/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/71"
)
pet = res.json()
{
  "id": 71,
  "ownerUserId": 79,
  "name": "Ervin",
  "species": "dog",
  "breedId": 22,
  "gender": "male",
  "birthDate": null,
  "weightKg": 45.9,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-71/600/600",
  "createdAt": "2016-05-05T13:04:43.190Z",
  "updatedAt": "2022-09-14T15:27:47.295Z"
}
Draftbit