example-data.com

pets / #197

ownerUserId
200
name
Golda
species
dog
breedId
1
gender
female
birthDate
2011-09-28
weightKg
48.1
color
White
imageUrl
https://picsum.photos/seed/pet-197/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/197"
)
pet = res.json()
{
  "id": 197,
  "ownerUserId": 200,
  "name": "Golda",
  "species": "dog",
  "breedId": 1,
  "gender": "female",
  "birthDate": "2011-09-28",
  "weightKg": 48.1,
  "color": "White",
  "imageUrl": "https://picsum.photos/seed/pet-197/600/600",
  "createdAt": "2018-02-04T07:06:28.890Z",
  "updatedAt": "2022-05-13T21:07:20.910Z"
}
Draftbit