example-data.com

pets / #64

ownerUserId
71
name
Marcos
species
bird
breedId
56
gender
female
birthDate
2019-07-02
weightKg
0.81
color
Multi-color
imageUrl
https://picsum.photos/seed/pet-64/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/64"
)
pet = res.json()
{
  "id": 64,
  "ownerUserId": 71,
  "name": "Marcos",
  "species": "bird",
  "breedId": 56,
  "gender": "female",
  "birthDate": "2019-07-02",
  "weightKg": 0.81,
  "color": "Multi-color",
  "imageUrl": "https://picsum.photos/seed/pet-64/600/600",
  "createdAt": "2014-02-14T02:51:49.117Z",
  "updatedAt": "2016-04-16T13:04:26.739Z"
}
Draftbit