Bug 23358

Summary: REST API: Add pagination to /api/v1/holds
Product: Koha Reporter: Emmi Takkinen <emmi.takkinen>
Component: REST APIAssignee: Emmi Takkinen <emmi.takkinen>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P5 - low CC: emmi.takkinen, josef.moravec
Version: Main   
Hardware: All   
OS: All   
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

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 ***