Amari
- ownerUserId
-
Kennith Hahn @kennith.hahn
- name
- Amari
- species
- dog
- breedId
- —
- gender
- male
- birthDate
- —
- weightKg
- 56.1
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-199/600/600
- createdAt
- updatedAt
Overview
pets / #199
Amari
#199
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/199" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/199" ); 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/199"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/199"
)
pet = res.json() Response
{
"id": 199,
"ownerUserId": 201,
"name": "Amari",
"species": "dog",
"breedId": null,
"gender": "male",
"birthDate": null,
"weightKg": 56.1,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-199/600/600",
"createdAt": "2018-09-19T18:31:23.078Z",
"updatedAt": "2021-03-02T00:45:23.643Z"
}