example-data.com

pets / #94

ownerUserId
110
name
Fabian
species
dog
breedId
gender
female
birthDate
2022-06-03
weightKg
4.5
color
White
imageUrl
https://picsum.photos/seed/pet-94/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/94"
)
pet = res.json()
{
  "id": 94,
  "ownerUserId": 110,
  "name": "Fabian",
  "species": "dog",
  "breedId": null,
  "gender": "female",
  "birthDate": "2022-06-03",
  "weightKg": 4.5,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-94/600/600",
  "createdAt": "2015-03-08T00:52:24.900Z",
  "updatedAt": "2016-02-12T08:23:55.958Z"
}
Draftbit