example-data.com

pets / #93

ownerUserId
109
name
Vivian
species
dog
breedId
21
gender
female
birthDate
2022-04-12
weightKg
9
color
Golden
imageUrl
https://picsum.photos/seed/pet-93/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/93"
)
pet = res.json()
{
  "id": 93,
  "ownerUserId": 109,
  "name": "Vivian",
  "species": "dog",
  "breedId": 21,
  "gender": "female",
  "birthDate": "2022-04-12",
  "weightKg": 9,
  "color": "Golden",
  "imageUrl": "https://picsum.photos/seed/pet-93/600/600",
  "createdAt": "2018-10-02T23:32:44.984Z",
  "updatedAt": "2023-12-20T15:53:03.668Z"
}
Draftbit