Bug 31801: Add REST endpoint to modify a biblio
authorAgustin Moyano <agustinmoyano@theke.io>
Fri, 23 Dec 2022 21:38:04 +0000 (18:38 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 13 Mar 2023 18:11:19 +0000 (15:11 -0300)
commit4438c4da2e742c9383f30ea9850b8f0a1a3b5712
treeb39ee44202b34818161429af007b989eb3a8b7a5
parent587615fd9f63e74fdb42f7832845fe52e3f17a74
Bug 31801: Add REST endpoint to modify a biblio

To test:
1. Apply patch
2. Set RESTBasicAuth preference to true
3. Pick a biblio to modify, and modify it's marc record
4. Make a PUT request to /api/v1/biblios/:biblionumber with one of the following content type header
  - application/marcxml+xml
  - application/marc-in-json
  - application/marc
5. Add the following header in the request 'x-framework-id: <framework id>'
5. Check that the biblio was modified
6. Sign off

Signed-off-by: Hammat Wele <hammat.wele@inlibro.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Biblios.pm
api/v1/swagger/paths/biblios.yaml
t/db_dependent/api/v1/biblios.t