]> git.koha-community.org Git - koha.git/commit
Bug 32734: Add REST endpoint to list biblios
authorAgustin Moyano <agustinmoyano@theke.io>
Fri, 17 Feb 2023 01:17:43 +0000 (22:17 -0300)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Thu, 16 Mar 2023 19:47:25 +0000 (19:47 +0000)
commit7b3fd8f47509a0fe5860b708e507078d0d0ab54f
tree3d279a86581635716bede57a1a9b68f52868f21d
parentfed1e0ff76970aa5db2fb003bdc122123cdb8c89
Bug 32734: Add REST endpoint to list biblios

This patch adds an endpoint to list biblios

To test:
1. apply patch
2. enable basic auth
3. call to GET /api/v1/biblios with the following Accept headers:
 * application/json
 * application/marcxml+xml
 * application/marc-in-json
 * application/marc
 * text/plain
4. notice how data changes with each Accept header
5. prove t/db_dependent/Koha/Biblios.t t/db_dependent/api/v1/biblios.t
6. sign off

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Hammat Wele <hammat.wele@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a4fb1ca3d147dfe2757bba10225088db4236d430)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
Koha/Biblios.pm
Koha/REST/V1/Biblios.pm
api/v1/swagger/paths/biblios.yaml
t/db_dependent/api/v1/biblios.t