Aylin
- ownerUserId
-
Earnestine Dickinson @earnestine_dickinson
- name
- Aylin
- species
- cat
- breedId
- Tonkinese
- gender
- unknown
- birthDate
- 2020-02-12
- weightKg
- 3.2
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-95/600/600
- createdAt
- updatedAt
Overview
pets / #95
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/95" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/95" ); 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/95"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/95"
)
pet = res.json() Response
{
"id": 95,
"ownerUserId": 110,
"name": "Aylin",
"species": "cat",
"breedId": 48,
"gender": "unknown",
"birthDate": "2020-02-12",
"weightKg": 3.2,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-95/600/600",
"createdAt": "2018-12-25T09:20:31.839Z",
"updatedAt": "2020-05-29T10:23:43.019Z"
}