Dorcas
- ownerUserId
-
Nikolas Wolf @nikolas.wolf
- name
- Dorcas
- species
- bird
- breedId
- Cockatiel
- gender
- male
- birthDate
- 2017-10-04
- weightKg
- 1.43
- color
- Multi-color
- imageUrl
- https://picsum.photos/seed/pet-152/600/600
- createdAt
- updatedAt
Overview
pets / #152
Dorcas
#152
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/152" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/152" ); 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/152"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/152"
)
pet = res.json() Response
{
"id": 152,
"ownerUserId": 158,
"name": "Dorcas",
"species": "bird",
"breedId": 57,
"gender": "male",
"birthDate": "2017-10-04",
"weightKg": 1.43,
"color": "Multi-color",
"imageUrl": "https://picsum.photos/seed/pet-152/600/600",
"createdAt": "2018-01-12T00:09:12.895Z",
"updatedAt": "2022-11-06T01:06:05.950Z"
}