example-data.com

pets / #115

ownerUserId
127
name
Lonny
species
dog
breedId
3
gender
female
birthDate
2016-08-15
weightKg
60.1
color
Golden
imageUrl
https://picsum.photos/seed/pet-115/600/600
createdAt
updatedAt

Component variants

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

res = requests.get(
    "https://example-data.com/api/v1/pets/115"
)
pet = res.json()
{
  "id": 115,
  "ownerUserId": 127,
  "name": "Lonny",
  "species": "dog",
  "breedId": 3,
  "gender": "female",
  "birthDate": "2016-08-15",
  "weightKg": 60.1,
  "color": "Golden",
  "imageUrl": "https://picsum.photos/seed/pet-115/600/600",
  "createdAt": "2015-10-23T07:10:07.353Z",
  "updatedAt": "2017-02-07T12:06:06.473Z"
}
Draftbit