example-data.com

pets / #2

ownerUserId
3
name
Erik
species
dog
breedId
15
gender
male
birthDate
weightKg
61.1
color
Spotted
imageUrl
https://picsum.photos/seed/pet-2/600/600
createdAt
updatedAt

Component variants

Medium

Erik

#2

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

res = requests.get(
    "https://example-data.com/api/v1/pets/2"
)
pet = res.json()
{
  "id": 2,
  "ownerUserId": 3,
  "name": "Erik",
  "species": "dog",
  "breedId": 15,
  "gender": "male",
  "birthDate": null,
  "weightKg": 61.1,
  "color": "Spotted",
  "imageUrl": "https://picsum.photos/seed/pet-2/600/600",
  "createdAt": "2022-08-18T21:43:32.000Z",
  "updatedAt": "2022-09-02T00:49:05.092Z"
}
Draftbit