example-data.com

pets / #184

ownerUserId
188
name
Serena
species
cat
breedId
43
gender
male
birthDate
2013-10-25
weightKg
4.4
color
Tabby
imageUrl
https://picsum.photos/seed/pet-184/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/184"
)
pet = res.json()
{
  "id": 184,
  "ownerUserId": 188,
  "name": "Serena",
  "species": "cat",
  "breedId": 43,
  "gender": "male",
  "birthDate": "2013-10-25",
  "weightKg": 4.4,
  "color": "Tabby",
  "imageUrl": "https://picsum.photos/seed/pet-184/600/600",
  "createdAt": "2020-03-09T17:38:46.124Z",
  "updatedAt": "2021-03-03T13:55:56.349Z"
}
Draftbit