example-data.com

pets / #155

ownerUserId
166
name
Carmela
species
dog
breedId
11
gender
female
birthDate
weightKg
58.5
color
White
imageUrl
https://picsum.photos/seed/pet-155/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/155"
)
pet = res.json()
{
  "id": 155,
  "ownerUserId": 166,
  "name": "Carmela",
  "species": "dog",
  "breedId": 11,
  "gender": "female",
  "birthDate": null,
  "weightKg": 58.5,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-155/600/600",
  "createdAt": "2016-01-30T04:39:59.370Z",
  "updatedAt": "2024-12-01T12:27:30.276Z"
}
Draftbit