example-data.com

pets / #149

ownerUserId
157
name
Odie
species
bird
breedId
60
gender
male
birthDate
2015-09-22
weightKg
0.16
color
Red
imageUrl
https://picsum.photos/seed/pet-149/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/149"
)
pet = res.json()
{
  "id": 149,
  "ownerUserId": 157,
  "name": "Odie",
  "species": "bird",
  "breedId": 60,
  "gender": "male",
  "birthDate": "2015-09-22",
  "weightKg": 0.16,
  "color": "Red",
  "imageUrl": "https://picsum.photos/seed/pet-149/600/600",
  "createdAt": "2016-03-24T08:05:21.347Z",
  "updatedAt": "2019-07-03T00:58:10.350Z"
}
Draftbit