From db712ea35889a5b3023775249b02d82287803aa1 Mon Sep 17 00:00:00 2001 From: Emmi Takkinen 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