hoarder-app / hoarder

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
https://hoarder.app
GNU Affero General Public License v3.0
6.47k stars 235 forks source link

REST API can only get 100 items #675

Closed yinan-c closed 4 days ago

yinan-c commented 5 days ago

Describe the feature you'd like

Max limit is 100 per page, however no pagination imlemented. It would be good to have a umilimited per page parameter or set the pagination.

Describe the benefits this would bring to existing Hoarder users

API users will be able to get all links

Can the goal of this request already be achieved via other means?

For now, hoarder cli can get all bookmarks but not REST API

Have you searched for an existing open/closed issue?

Additional context

No response

MohamedBassem commented 5 days ago

The api does support pagination. The response contains a 'nextCursor' which if you send back as the 'cursor' search param you should get the next page. Does it not work?

yinan-c commented 4 days ago

The cursor works thanks!