Activity #268
User #158 favorited Book #16
4/11/2025, 6:59:11 AM
Overview
book-favs / #268
User #158 favorited Book #16
4/11/2025, 6:59:11 AM
User #158 favorited Book #16
4/11/2025, 6:59:11 AM
View recordUser #158 favorited Book #16 · 4/11/2025, 6:59:11 AM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/book-favs/268" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/book-favs/268" ); 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/268"
);
const bookFav = (await res.json()) as BookFav; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/book-favs/268"
)
book_fav = res.json() Response
{
"id": 268,
"userId": 158,
"bookId": 16,
"savedAt": "2025-04-11T06:59:11.246Z"
}