Yolanda
- ownerUserId
-
Allan Buckridge @allan_buckridge
- name
- Yolanda
- species
- cat
- breedId
- —
- gender
- male
- birthDate
- 2020-03-31
- weightKg
- 6.3
- color
- Tortoiseshell
- imageUrl
- https://picsum.photos/seed/pet-91/600/600
- createdAt
- updatedAt
Overview
pets / #91
Yolanda
#91
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/91" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/91" ); 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/91"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/91"
)
pet = res.json() Response
{
"id": 91,
"ownerUserId": 106,
"name": "Yolanda",
"species": "cat",
"breedId": null,
"gender": "male",
"birthDate": "2020-03-31",
"weightKg": 6.3,
"color": "Tortoiseshell",
"imageUrl": "https://picsum.photos/seed/pet-91/600/600",
"createdAt": "2011-07-19T17:53:26.415Z",
"updatedAt": "2024-01-24T18:44:08.368Z"
}