Bugzilla – Attachment 91727 Details for
Bug 23358
REST API: Add pagination to /api/v1/holds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23358: Add pagination to /api/v1/holds
0001-Bug-23358-Add-pagination-to-api-v1-holds.patch (text/plain), 1.17 KB, created by
Emmi Takkinen
on 2019-07-23 09:56:06 UTC
(
hide
)
Description:
Bug 23358: Add pagination to /api/v1/holds
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2019-07-23 09:56:06 UTC
Size:
1.17 KB
patch
obsolete
>From db712ea35889a5b3023775249b02d82287803aa1 Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@outlook.com> >Date: Tue, 23 Jul 2019 12:48:46 +0300 >Subject: [PATCH] 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 >--- > api/v1/swagger/paths/holds.json | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/api/v1/swagger/paths/holds.json b/api/v1/swagger/paths/holds.json >index 68e03da625..940174fb07 100644 >--- a/api/v1/swagger/paths/holds.json >+++ b/api/v1/swagger/paths/holds.json >@@ -102,6 +102,10 @@ > "in": "query", > "description": "Suspended until", > "type": "string" >+ },{ >+ "$ref": "../parameters.json#/page" >+ }, { >+ "$ref": "../parameters.json#/per_page" > } > ], > "produces": ["application/json"], >-- >2.17.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23358
: 91727