example-data.com

pets / #17

ownerUserId
18
name
Leo
species
dog
breedId
30
gender
unknown
birthDate
2012-02-21
weightKg
60.1
color
Tan
imageUrl
https://picsum.photos/seed/pet-17/600/600
createdAt
updatedAt

Component variants

Medium

Leo

#17

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

res = requests.get(
    "https://example-data.com/api/v1/pets/17"
)
pet = res.json()
{
  "id": 17,
  "ownerUserId": 18,
  "name": "Leo",
  "species": "dog",
  "breedId": 30,
  "gender": "unknown",
  "birthDate": "2012-02-21",
  "weightKg": 60.1,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-17/600/600",
  "createdAt": "2011-12-29T13:22:58.002Z",
  "updatedAt": "2013-09-18T22:47:07.620Z"
}
Draftbit