]> git.koha-community.org Git - koha.git/commit
Bug 23154: Add pagination to /api/v1/checkouts
authorJulian Maurice <julian.maurice@biblibre.com>
Wed, 19 Jun 2019 09:10:14 +0000 (11:10 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 25 Jul 2019 11:22:25 +0000 (13:22 +0200)
commitb881cef7d357ee308a317c57c5f87bc973fa37a5
tree5f1dfd1b59b052f29dc16478383bcf1f56df5cf1
parent5816744d645c8612ccdc1c87f8ac3ddbbd62aa02
Bug 23154: Add pagination to /api/v1/checkouts

Allow to use _page and _per_page query parameters for
/api/v1/checkouts
Also fix a timezone problem in t/db_dependent/api/v1/checkouts.t

Test plan:
1. With your favorite REST tester tool, or directly in the browser,
   fetch http://koha/api/v1/checkouts and check that you have results
2. Fetch /api/v1/checkouts?_per_page=1&_page=1 and check that only the
   first result is returned. Check that response contains headers
   X-Total-Count and Link
3. Fetch /api/v1/checkouts?_per_page=1&_page=2 and check that only the
   second result is returned. Check that response contains headers
   X-Total-Count and Link
4. prove t/db_dependent/api/v1/checkouts.t

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 088522032f33b6a5931cbea1b928537e7fe33fd0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
api/v1/swagger/paths/checkouts.json
t/db_dependent/api/v1/checkouts.t