example-data.com

pets / #123

ownerUserId
133
name
Clementina
species
dog
breedId
20
gender
female
birthDate
2022-05-28
weightKg
59.9
color
Golden
imageUrl
https://picsum.photos/seed/pet-123/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/123"
)
pet = res.json()
{
  "id": 123,
  "ownerUserId": 133,
  "name": "Clementina",
  "species": "dog",
  "breedId": 20,
  "gender": "female",
  "birthDate": "2022-05-28",
  "weightKg": 59.9,
  "color": "Golden",
  "imageUrl": "https://picsum.photos/seed/pet-123/600/600",
  "createdAt": "2020-11-11T18:52:46.105Z",
  "updatedAt": "2023-02-23T15:49:26.426Z"
}
Draftbit