example-data.com

pets / #42

ownerUserId
48
name
Kiana
species
dog
breedId
30
gender
unknown
birthDate
2016-03-01
weightKg
34.1
color
Tan
imageUrl
https://picsum.photos/seed/pet-42/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/42"
)
pet = res.json()
{
  "id": 42,
  "ownerUserId": 48,
  "name": "Kiana",
  "species": "dog",
  "breedId": 30,
  "gender": "unknown",
  "birthDate": "2016-03-01",
  "weightKg": 34.1,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-42/600/600",
  "createdAt": "2017-11-08T07:18:42.473Z",
  "updatedAt": "2021-07-09T01:12:50.057Z"
}
Draftbit