Manley
- ownerUserId
-
Mateo Gerlach @mateo.gerlach
- name
- Manley
- species
- fish
- breedId
- —
- gender
- male
- birthDate
- 2016-12-12
- weightKg
- 0.08
- color
- Gold
- imageUrl
- https://picsum.photos/seed/pet-73/600/600
- createdAt
- updatedAt
Overview
pets / #73
Manley
#73
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/73" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/73" ); 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/73"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/73"
)
pet = res.json() Response
{
"id": 73,
"ownerUserId": 81,
"name": "Manley",
"species": "fish",
"breedId": null,
"gender": "male",
"birthDate": "2016-12-12",
"weightKg": 0.08,
"color": "Gold",
"imageUrl": "https://picsum.photos/seed/pet-73/600/600",
"createdAt": "2017-07-07T07:03:50.310Z",
"updatedAt": "2020-03-24T05:06:42.953Z"
}