example-data.com

pets / #15

ownerUserId
16
name
Cooper
species
dog
breedId
6
gender
male
birthDate
2015-05-26
weightKg
31.6
color
Brown
imageUrl
https://picsum.photos/seed/pet-15/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/15"
)
pet = res.json()
{
  "id": 15,
  "ownerUserId": 16,
  "name": "Cooper",
  "species": "dog",
  "breedId": 6,
  "gender": "male",
  "birthDate": "2015-05-26",
  "weightKg": 31.6,
  "color": "Brown",
  "imageUrl": "https://picsum.photos/seed/pet-15/600/600",
  "createdAt": "2012-09-15T12:30:16.558Z",
  "updatedAt": "2022-05-20T22:16:05.698Z"
}
Draftbit