Activity #138
User #73 favorited Book #50
2/16/2025, 7:36:53 PM
Overview
book-favs / #138
User #73 favorited Book #50
2/16/2025, 7:36:53 PM
User #73 favorited Book #50
2/16/2025, 7:36:53 PM
View recordUser #73 favorited Book #50 · 2/16/2025, 7:36:53 PM
Request
curl example
curl -sS \ "https://example-data.com/api/v1/book-favs/138" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/book-favs/138" ); 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/138"
);
const bookFav = (await res.json()) as BookFav; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/book-favs/138"
)
book_fav = res.json() Response
{
"id": 138,
"userId": 73,
"bookId": 50,
"savedAt": "2025-02-16T19:36:53.985Z"
}