example-data.com

pets / #117

ownerUserId
128
name
Mayra
species
fish
breedId
gender
male
birthDate
2017-06-28
weightKg
0.09
color
Multi-color
imageUrl
https://picsum.photos/seed/pet-117/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/117"
)
pet = res.json()
{
  "id": 117,
  "ownerUserId": 128,
  "name": "Mayra",
  "species": "fish",
  "breedId": null,
  "gender": "male",
  "birthDate": "2017-06-28",
  "weightKg": 0.09,
  "color": "Multi-color",
  "imageUrl": "https://picsum.photos/seed/pet-117/600/600",
  "createdAt": "2024-06-10T17:31:39.934Z",
  "updatedAt": "2024-12-26T04:01:28.011Z"
}
Draftbit