Brayan
- ownerUserId
-
Van Crona @van_crona
- name
- Brayan
- species
- bird
- breedId
- African Grey Parrot
- gender
- male
- birthDate
- 2014-05-20
- weightKg
- 0.88
- color
- Yellow
- imageUrl
- https://picsum.photos/seed/pet-180/600/600
- createdAt
- updatedAt
Overview
pets / #180
Brayan
#180
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/180" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/180" ); 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/180"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/180"
)
pet = res.json() Response
{
"id": 180,
"ownerUserId": 185,
"name": "Brayan",
"species": "bird",
"breedId": 58,
"gender": "male",
"birthDate": "2014-05-20",
"weightKg": 0.88,
"color": "Yellow",
"imageUrl": "https://picsum.photos/seed/pet-180/600/600",
"createdAt": "2020-03-28T19:22:49.734Z",
"updatedAt": "2022-08-27T08:32:03.212Z"
}