example-data.com

pets / #140

ownerUserId
149
name
Hassan
species
fish
breedId
68
gender
male
birthDate
2017-12-04
weightKg
0.16
color
Red
imageUrl
https://picsum.photos/seed/pet-140/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/140"
)
pet = res.json()
{
  "id": 140,
  "ownerUserId": 149,
  "name": "Hassan",
  "species": "fish",
  "breedId": 68,
  "gender": "male",
  "birthDate": "2017-12-04",
  "weightKg": 0.16,
  "color": "Red",
  "imageUrl": "https://picsum.photos/seed/pet-140/600/600",
  "createdAt": "2021-06-12T07:41:04.803Z",
  "updatedAt": "2022-07-18T17:15:50.022Z"
}
Draftbit