Marcos
- ownerUserId
-
Florencio Mohr @florencio_mohr
- name
- Marcos
- species
- bird
- breedId
- Budgerigar
- gender
- female
- birthDate
- 2019-07-02
- weightKg
- 0.81
- color
- Multi-color
- imageUrl
- https://picsum.photos/seed/pet-64/600/600
- createdAt
- updatedAt
Overview
pets / #64
Marcos
#64
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/64" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/64" ); 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/64"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/64"
)
pet = res.json() Response
{
"id": 64,
"ownerUserId": 71,
"name": "Marcos",
"species": "bird",
"breedId": 56,
"gender": "female",
"birthDate": "2019-07-02",
"weightKg": 0.81,
"color": "Multi-color",
"imageUrl": "https://picsum.photos/seed/pet-64/600/600",
"createdAt": "2014-02-14T02:51:49.117Z",
"updatedAt": "2016-04-16T13:04:26.739Z"
}