Mohammed
- ownerUserId
-
Lamar Wilkinson @lamar_wilkinson43
- name
- Mohammed
- species
- cat
- breedId
- Maine Coon
- gender
- unknown
- birthDate
- —
- weightKg
- 5.2
- color
- Orange
- imageUrl
- https://picsum.photos/seed/pet-36/600/600
- createdAt
- updatedAt
Overview
pets / #36
Mohammed
#36
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/36" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/36" ); 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/36"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/36"
)
pet = res.json() Response
{
"id": 36,
"ownerUserId": 43,
"name": "Mohammed",
"species": "cat",
"breedId": 32,
"gender": "unknown",
"birthDate": null,
"weightKg": 5.2,
"color": "Orange",
"imageUrl": "https://picsum.photos/seed/pet-36/600/600",
"createdAt": "2018-08-29T09:51:26.110Z",
"updatedAt": "2020-02-15T14:05:12.616Z"
}