example-data.com

pets / #1

ownerUserId
1
name
Juwan
species
reptile
breedId
71
gender
unknown
birthDate
2018-01-10
weightKg
5.1
color
Yellow
imageUrl
https://picsum.photos/seed/pet-1/600/600
createdAt
updatedAt

Component variants

Medium

Juwan

#1

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

res = requests.get(
    "https://example-data.com/api/v1/pets/1"
)
pet = res.json()
{
  "id": 1,
  "ownerUserId": 1,
  "name": "Juwan",
  "species": "reptile",
  "breedId": 71,
  "gender": "unknown",
  "birthDate": "2018-01-10",
  "weightKg": 5.1,
  "color": "Yellow",
  "imageUrl": "https://picsum.photos/seed/pet-1/600/600",
  "createdAt": "2014-07-16T00:37:39.435Z",
  "updatedAt": "2021-04-21T04:08:36.863Z"
}
Draftbit