go-shiori / shiori

Simple bookmark manager built with Go
MIT License
9.28k stars 551 forks source link

Issues with Cache and Ebook Update from Version 1.6 #855

Closed DesarrolloAntonio closed 7 months ago

DesarrolloAntonio commented 7 months ago

Data

I'm testing the cache update and ebook functionality. With version 1.5, it works correctly, but with version 1.6, I'm encountering problems. Using the legacy API returns:

<-- 404 Not Found http://192.168.1.12:8080/api/cache (21ms)

Sending the following information:

X-Session-Id: f9acb19e-2670-4d75-bf4b-cdc5a4e81236
{"createArchive":false,"createEbook":false,"ids":[2],"keepMetadata":false}

Should I use the endpoint /api/v1/bookmarks/cache? Should I send the token instead of the X-Session-Id? The response returns 401 Unauthorized with v1

Also, this issue might be related to https://github.com/DesarrolloAntonio/Shiori-Android-Client/issues/2.


Monirzadeh commented 7 months ago

check http://127.0.0.1:8080/swagger/index.html#/Auth/put_api_v1_bookmarks_cache you should send request to /api/v1/bookmarks/cache with something like this

{
  "create_archive": true,
  "create_ebook": true,
  "ids": [
    0
  ],
  "keep_metadata": true,
  "skip_exist": false
}

camelName change to snake_name too beside endpoint.

DesarrolloAntonio commented 7 months ago

Thanks