Bug 23358 - REST API: Add pagination to /api/v1/holds
Summary: REST API: Add pagination to /api/v1/holds
Status: RESOLVED DUPLICATE of bug 23597
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: master
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Emmi Takkinen
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-23 08:29 UTC by Emmi Takkinen
Modified: 2019-09-17 19:14 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 23358: Add pagination to /api/v1/holds (1.17 KB, patch)
2019-07-23 09:56 UTC, Emmi Takkinen
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Emmi Takkinen 2019-07-23 08:29:10 UTC
"/api/v1/holds" should allow use of _page and _per_page parameters.
Comment 1 Emmi Takkinen 2019-07-23 09:56:06 UTC
Created attachment 91727 [details] [review]
Bug 23358: Add pagination to /api/v1/holds

Allow /api/v1/holds to use _page and _per_page parameters.

Test plan:
- Fetch http://koha/api/v1/holds to check if you have results
- Fetch api/v1/holds?_per_page=1&_page=1 and check that
only first result is returned
- Fetch api/v1/holds?_per_page=1&_page=2 and check that
only second result is returned
- Repeat above with different values for each parameters
and check that result is correct
Comment 2 Josef Moravec 2019-09-17 19:14:40 UTC
Was resolved by bug 23597

*** This bug has been marked as a duplicate of bug 23597 ***