Activity #223
User #129 favorited Book #87
1/19/2025, 5:58:39 AM
Overview
book-favs / #223
User #129 favorited Book #87
1/19/2025, 5:58:39 AM
User #129 favorited Book #87
1/19/2025, 5:58:39 AM
View recordUser #129 favorited Book #87 · 1/19/2025, 5:58:39 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/book-favs/223" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/book-favs/223" ); const bookFav = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/book-favs.d.ts https://example-data.com/types/book-favs.d.ts
import type { BookFav } from "./types/book-favs";
const res = await fetch(
"https://example-data.com/api/v1/book-favs/223"
);
const bookFav = (await res.json()) as BookFav; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/book-favs/223"
)
book_fav = res.json() Response
{
"id": 223,
"userId": 129,
"bookId": 87,
"savedAt": "2025-01-19T05:58:39.582Z"
}