Bug 31795: Add REST endpoint to add an authority
authorAgustin Moyano <agustinmoyano@theke.io>
Thu, 6 Apr 2023 18:55:26 +0000 (15:55 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 13:18:43 +0000 (10:18 -0300)
commit1cbe4c2e416b88ada7d03035bf0c4466cd867769
treeb9875fe850052b53642daf34e3b1cad884a497c4
parent13dccaaf055b49473c1cc4a6ac34c0a23eb182a0
Bug 31795: Add REST endpoint to add an authority

To test:
1. Apply patch
2. Set RESTBasicAuth preference to true
3. Make a POST request to /api/v1/authorities with one of the following content type header
  - application/json
  - application/marcxml+xml
  - application/marc-in-json
  - application/marc
4. If content type is other than application/json, then add the following header to the request: "x-authority-type: <auth type code>"
5. Check that the authority is created
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
api/v1/swagger/swagger.yaml
t/db_dependent/api/v1/authorities.t