nextcloud / nextcloud/bookmarks
Add paging to folder contents REST API
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.2k
- Forks
- 189
- Avg merge
- 5d 11h
- Merged PRs (30d)
- 10
Description
Given a folder can have hundreds of children, it would be good to have paging on the new folder contents endpoint in the REST API. Something like:
get:: /public/rest/v2/folder/(int:folder_id)/children
:query int page: if this is non-negative, results will be paginated by 10 children per page. Default: ``0``.
I understand you've got a few issues on your hands. No rush :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the implementation of the new folder contents REST endpoint at /public/rest/v2/folder/{folder_id}/children and read how it currently returns children. Add support for a non-negative page query parameter, with 10 children per page and a default of 0. Done means the endpoint consistently returns the requested page of folder contents.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100