]> git.koha-community.org Git - koha.git/commit
Bug 31796: Add REST endpoint to modify an authority
authorAgustin Moyano <agustinmoyano@theke.io>
Tue, 20 Dec 2022 18:28:04 +0000 (15:28 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 15:13:44 +0000 (12:13 -0300)
commitb2801da206e32e20bc64ef2fa0aa078440e86ba9
tree17bd1a99756a17914b310bffcb8921189cafa0a9
parent88000fbccbcfe707ee3d8bf72f549c1ac11be3f3
Bug 31796: Add REST endpoint to modify an authority

To test:
1. Apply patch
2. Set RESTBasicAuth preference to true
3. Pick an authority to modify, and modify it's marc record
4. Make a PUT request to /api/v1/authorities/:authid with one of the following content type header
  - application/json
  - application/marcxml+xml
  - application/marc-in-json
  - application/marc
5. If content type is other than 'application/json' place the following header in the request 'x-authority-type: <auth type>'
5. Check that the authority was modified
6. Sign off

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Authorities.pm
api/v1/swagger/paths/authorities.yaml
t/db_dependent/api/v1/authorities.t [changed mode: 0755->0644]