example-data.com

pets / #198

ownerUserId
200
name
Desmond
species
dog
breedId
25
gender
male
birthDate
weightKg
52.9
color
Golden
imageUrl
https://picsum.photos/seed/pet-198/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/198"
)
pet = res.json()
{
  "id": 198,
  "ownerUserId": 200,
  "name": "Desmond",
  "species": "dog",
  "breedId": 25,
  "gender": "male",
  "birthDate": null,
  "weightKg": 52.9,
  "color": "Golden",
  "imageUrl": "https://picsum.photos/seed/pet-198/600/600",
  "createdAt": "2017-09-21T18:07:45.923Z",
  "updatedAt": "2019-07-29T05:03:20.858Z"
}
Draftbit