Serena
- ownerUserId
-
D'angelo Kling @dangelo_kling6
- name
- Serena
- species
- cat
- breedId
- Burmese
- gender
- male
- birthDate
- 2013-10-25
- weightKg
- 4.4
- color
- Tabby
- imageUrl
- https://picsum.photos/seed/pet-184/600/600
- createdAt
- updatedAt
Overview
pets / #184
Serena
#184
Request
curl example
curl -sS \ "https://example-data.com/api/v1/pets/184" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/pets/184" ); 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/184"
);
const pet = (await res.json()) as Pet; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/pets/184"
)
pet = res.json() Response
{
"id": 184,
"ownerUserId": 188,
"name": "Serena",
"species": "cat",
"breedId": 43,
"gender": "male",
"birthDate": "2013-10-25",
"weightKg": 4.4,
"color": "Tabby",
"imageUrl": "https://picsum.photos/seed/pet-184/600/600",
"createdAt": "2020-03-09T17:38:46.124Z",
"updatedAt": "2021-03-03T13:55:56.349Z"
}