example-data.com

pets / #178

ownerUserId
184
name
Tia
species
dog
breedId
4
gender
female
birthDate
2013-12-10
weightKg
14.4
color
Tan
imageUrl
https://picsum.photos/seed/pet-178/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/178"
)
pet = res.json()
{
  "id": 178,
  "ownerUserId": 184,
  "name": "Tia",
  "species": "dog",
  "breedId": 4,
  "gender": "female",
  "birthDate": "2013-12-10",
  "weightKg": 14.4,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-178/600/600",
  "createdAt": "2012-11-26T07:51:51.588Z",
  "updatedAt": "2023-05-11T16:55:45.268Z"
}
Draftbit