example-data.com

pets / #14

ownerUserId
13
name
Eugenia
species
bird
breedId
57
gender
female
birthDate
weightKg
0.61
color
Red
imageUrl
https://picsum.photos/seed/pet-14/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/14"
)
pet = res.json()
{
  "id": 14,
  "ownerUserId": 13,
  "name": "Eugenia",
  "species": "bird",
  "breedId": 57,
  "gender": "female",
  "birthDate": null,
  "weightKg": 0.61,
  "color": "Red",
  "imageUrl": "https://picsum.photos/seed/pet-14/600/600",
  "createdAt": "2014-12-17T05:03:55.180Z",
  "updatedAt": "2018-10-24T19:50:45.621Z"
}
Draftbit