Mayra
- ownerUserId
-
Charity Crona @charity.crona12
- name
- Mayra
- species
- cat
- breedId
- —
- gender
- unknown
- birthDate
- —
- weightKg
- 5.5
- color
- Calico
- imageUrl
- https://picsum.photos/seed/pet-85/600/600
- createdAt
- updatedAt
Overview
pets / #85
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/85" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/85" ); 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/85"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/85"
)
pet = res.json() Response
{
"id": 85,
"ownerUserId": 100,
"name": "Mayra",
"species": "cat",
"breedId": null,
"gender": "unknown",
"birthDate": null,
"weightKg": 5.5,
"color": "Calico",
"imageUrl": "https://picsum.photos/seed/pet-85/600/600",
"createdAt": "2018-01-11T20:32:22.170Z",
"updatedAt": "2021-07-03T15:08:54.087Z"
}