Lelia
- ownerUserId
-
Darian Schaden @darian_schaden36
- name
- Lelia
- species
- dog
- breedId
- Boxer
- gender
- male
- birthDate
- 2011-08-07
- weightKg
- 6.4
- color
- Brindle
- imageUrl
- https://picsum.photos/seed/pet-48/600/600
- createdAt
- updatedAt
Overview
pets / #48
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/48" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/48" ); 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/48"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/48"
)
pet = res.json() Response
{
"id": 48,
"ownerUserId": 53,
"name": "Lelia",
"species": "dog",
"breedId": 10,
"gender": "male",
"birthDate": "2011-08-07",
"weightKg": 6.4,
"color": "Brindle",
"imageUrl": "https://picsum.photos/seed/pet-48/600/600",
"createdAt": "2018-12-30T03:14:38.939Z",
"updatedAt": "2021-03-05T21:47:19.079Z"
}