clach04 / whatabagacack

❓👜💩❗ Experimental (incomplete) Python Wallabag API Server
GNU Affero General Public License v3.0
1 stars 0 forks source link

support paging for /api/entries #2

Closed clach04 closed 1 year ago

clach04 commented 1 year ago

Handle:

Sample end section:

"_links": {
    "first": {
        "href": "https://SERVER/api/entries?sort=created&order=desc&tags=&since=0&detail=full&page=1&perPage=30"
    }, 
    "last": {
        "href": "https://SERVER/api/entries?sort=created&order=desc&tags=&since=0&detail=full&page=1&perPage=30"
    }, 
    "self": {
        "href": "https://SERVER/api/entries?sort=created&order=desc&tags=&since=0&detail=full&page=1&perPage=30"
    }
}, 
"limit": 30, 
"page": 1, 
"pages": 1, 
"total": 6

Once done, add sanity checks for unsupported arguments and the raise an unsupported error.

For now order by id (KoReader doesn't request ordering).

clach04 commented 1 year ago

Makes sense to work on this once https://github.com/clach04/whatabagacack/issues/6 is complete.

SunMoon97 commented 1 year ago

@clach04 Can you assign this issue to me?

clach04 commented 1 year ago

Hi @SunMoon97 thanks for reaching out. Paging support was added a couple of weeks ago to the https://github.com/clach04/whatabagacack/tree/paging_support branch. I think I'm done with (manual) testing, sadly no automated tests.

Out of curiosity do you have a use case for this project? In case the readme isn't clear this is currently very limited (and I don't plan to add authentication/authorization support).

clach04 commented 1 year ago

See docs/notes https://github.com/clach04/whatabagacack#quick-start-server