example-data.com

pets / #105

ownerUserId
119
name
Coby
species
fish
breedId
gender
female
birthDate
2018-08-17
weightKg
0.23
color
Red
imageUrl
https://picsum.photos/seed/pet-105/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/105"
)
pet = res.json()
{
  "id": 105,
  "ownerUserId": 119,
  "name": "Coby",
  "species": "fish",
  "breedId": null,
  "gender": "female",
  "birthDate": "2018-08-17",
  "weightKg": 0.23,
  "color": "Red",
  "imageUrl": "https://picsum.photos/seed/pet-105/600/600",
  "createdAt": "2014-05-11T14:40:49.154Z",
  "updatedAt": "2020-04-14T22:32:11.426Z"
}
Draftbit