example-data.com

pets / #98

ownerUserId
113
name
Keanu
species
dog
breedId
20
gender
female
birthDate
weightKg
27.9
color
Tan
imageUrl
https://picsum.photos/seed/pet-98/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/98"
)
pet = res.json()
{
  "id": 98,
  "ownerUserId": 113,
  "name": "Keanu",
  "species": "dog",
  "breedId": 20,
  "gender": "female",
  "birthDate": null,
  "weightKg": 27.9,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-98/600/600",
  "createdAt": "2019-04-23T13:27:58.637Z",
  "updatedAt": "2020-03-29T04:33:19.373Z"
}
Draftbit