zot
zot copied to clipboard
Freeform search API: pagination
Is your feature request related to a problem? Please describe. A freeform search API was introduced in https://github.com/project-zot/zot/issues/591 / https://github.com/project-zot/zot/pull/618 This API should support pagination.
Describe the solution you'd like
We should include a limit and an offset in order to request a specific page of a given size.
See also:
https://www.moesif.com/blog/technical/api-design/REST-API-Design-Filtering-Sorting-and-Pagination/#pagination
Additional context
This is needed for the zui functionality - in both the general search view, and for the free type search (to request only the first page with the most relevant results).