example-data.com

pets / #159

ownerUserId
170
name
Kristofer
species
reptile
breedId
70
gender
unknown
birthDate
2020-06-05
weightKg
7.2
color
Yellow
imageUrl
https://picsum.photos/seed/pet-159/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/159"
)
pet = res.json()
{
  "id": 159,
  "ownerUserId": 170,
  "name": "Kristofer",
  "species": "reptile",
  "breedId": 70,
  "gender": "unknown",
  "birthDate": "2020-06-05",
  "weightKg": 7.2,
  "color": "Yellow",
  "imageUrl": "https://picsum.photos/seed/pet-159/600/600",
  "createdAt": "2020-05-25T06:20:51.756Z",
  "updatedAt": "2021-10-10T18:03:38.624Z"
}
Draftbit