- sign in
Template: auth.request
What the reader sends: POST /oauth/token {"username":"reader","password":"secret"}
- shelves
Template: lists_url + lists_headers
What the reader sends: GET /api/shelves with Bearer
- page 2 of "Favorites"
Template: browse.url
What the reader sends: GET /api/books?shelf=fav&offset=8&limit=9
- search "dune"
Template: search.url
What the reader sends: GET /api/books?q=dune&offset=0&limit=9
- download
Template: download
What the reader sends: POST /api/books/3/download -> {"url":"/files/dune.epub"} -> GET http://<ip>:8080/files/dune.epub with Bearer (it's a server path)
Notes:
- {limit} is page_size + 1 = 9 in offset mode. The 9th row only tells the reader that a "Next page" exists.
- "All books" has "id": "", so {list_id_enc} is empty and shelf= means "no filter".
- lists_headers must be given explicitly. The lists request does not inherit browse.headers.
- When the server rejects the download, the reader shows the JSON message or error, for example "Download failed (HTTP 404): no such book".