Valentin
- ownerUserId
-
Theresia Collins @theresia_collins86
- name
- Valentin
- species
- dog
- breedId
- Siberian Husky
- gender
- unknown
- birthDate
- —
- weightKg
- 42.8
- color
- Golden
- imageUrl
- https://picsum.photos/seed/pet-55/600/600
- createdAt
- updatedAt
Overview
pets / #55
Valentin
#55
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/55" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/55" ); 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/55"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/55"
)
pet = res.json() Response
{
"id": 55,
"ownerUserId": 63,
"name": "Valentin",
"species": "dog",
"breedId": 11,
"gender": "unknown",
"birthDate": null,
"weightKg": 42.8,
"color": "Golden",
"imageUrl": "https://picsum.photos/seed/pet-55/600/600",
"createdAt": "2023-08-23T02:47:09.180Z",
"updatedAt": "2024-08-23T16:36:33.326Z"
}