Brannon
- ownerUserId
-
Cyril Frami @cyril_frami88
- name
- Brannon
- species
- dog
- breedId
- Bernese Mountain Dog
- gender
- female
- birthDate
- —
- weightKg
- 35.7
- color
- Brown
- imageUrl
- https://picsum.photos/seed/pet-177/600/600
- createdAt
- updatedAt
Overview
pets / #177
Brannon
#177
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/177" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/177" ); 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/177"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/177"
)
pet = res.json() Response
{
"id": 177,
"ownerUserId": 182,
"name": "Brannon",
"species": "dog",
"breedId": 26,
"gender": "female",
"birthDate": null,
"weightKg": 35.7,
"color": "Brown",
"imageUrl": "https://picsum.photos/seed/pet-177/600/600",
"createdAt": "2013-11-14T20:35:19.171Z",
"updatedAt": "2014-10-02T14:24:04.508Z"
}