example-data.com

pets / #83

ownerUserId
96
name
Camryn
species
reptile
breedId
gender
female
birthDate
2021-05-04
weightKg
9.7
color
Tan
imageUrl
https://picsum.photos/seed/pet-83/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/83"
)
pet = res.json()
{
  "id": 83,
  "ownerUserId": 96,
  "name": "Camryn",
  "species": "reptile",
  "breedId": null,
  "gender": "female",
  "birthDate": "2021-05-04",
  "weightKg": 9.7,
  "color": "Tan",
  "imageUrl": "https://picsum.photos/seed/pet-83/600/600",
  "createdAt": "2018-09-13T15:02:22.985Z",
  "updatedAt": "2020-09-21T23:37:48.127Z"
}
Draftbit