Imani
- ownerUserId
-
Nikko Kuhlman @nikko_kuhlman
- name
- Imani
- species
- other
- breedId
- —
- gender
- unknown
- birthDate
- 2024-12-01
- weightKg
- 1.68
- color
- White
- imageUrl
- https://picsum.photos/seed/pet-112/600/600
- createdAt
- updatedAt
Overview
pets / #112
Imani
#112
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/112" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/112" ); const pet = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/pets.d.ts https://example-data.com/types/pets.d.ts
import type { Pet } from "./types/pets";
const res = await fetch(
"https://example-data.com/api/v1/pets/112"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/112"
)
pet = res.json() Response
{
"id": 112,
"ownerUserId": 122,
"name": "Imani",
"species": "other",
"breedId": null,
"gender": "unknown",
"birthDate": "2024-12-01",
"weightKg": 1.68,
"color": "White",
"imageUrl": "https://picsum.photos/seed/pet-112/600/600",
"createdAt": "2014-06-24T21:50:01.437Z",
"updatedAt": "2023-09-16T07:48:55.169Z"
}