example-data.com

pets / #111

ownerUserId
122
name
Moises
species
dog
breedId
gender
male
birthDate
weightKg
25.8
color
Tan
imageUrl
https://picsum.photos/seed/pet-111/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/111"
)
pet = res.json()
{
  "id": 111,
  "ownerUserId": 122,
  "name": "Moises",
  "species": "dog",
  "breedId": null,
  "gender": "male",
  "birthDate": null,
  "weightKg": 25.8,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-111/600/600",
  "createdAt": "2023-06-08T14:16:48.649Z",
  "updatedAt": "2024-03-04T22:14:38.955Z"
}
Draftbit