Rosendo
- ownerUserId
-
Maryam Kunze @maryam_kunze
- name
- Rosendo
- species
- dog
- breedId
- —
- gender
- female
- birthDate
- 2022-01-23
- weightKg
- 66.8
- color
- Gray
- imageUrl
- https://picsum.photos/seed/pet-191/600/600
- createdAt
- updatedAt
Overview
pets / #191
Rosendo
#191
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/191" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/191" ); 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/191"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/191"
)
pet = res.json() Response
{
"id": 191,
"ownerUserId": 195,
"name": "Rosendo",
"species": "dog",
"breedId": null,
"gender": "female",
"birthDate": "2022-01-23",
"weightKg": 66.8,
"color": "Gray",
"imageUrl": "https://picsum.photos/seed/pet-191/600/600",
"createdAt": "2023-04-18T17:50:52.458Z",
"updatedAt": "2024-04-20T02:08:59.247Z"
}