example-data.com

pets / #9

ownerUserId
9
name
Hilma
species
bird
breedId
58
gender
female
birthDate
2019-09-04
weightKg
1.32
color
Green
imageUrl
https://picsum.photos/seed/pet-9/600/600
createdAt
updatedAt

Component variants

Medium

Hilma

#9

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

res = requests.get(
    "https://example-data.com/api/v1/pets/9"
)
pet = res.json()
{
  "id": 9,
  "ownerUserId": 9,
  "name": "Hilma",
  "species": "bird",
  "breedId": 58,
  "gender": "female",
  "birthDate": "2019-09-04",
  "weightKg": 1.32,
  "color": "Green",
  "imageUrl": "https://picsum.photos/seed/pet-9/600/600",
  "createdAt": "2017-10-03T19:52:07.702Z",
  "updatedAt": "2019-01-20T20:14:18.537Z"
}
Draftbit