[Koha-bugs] [Bug 31795] REST API: POST endpoint for Authorities

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 20 23:36:22 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31795

--- Comment #8 from David Nind <david at davidnind.com> ---
(In reply to Agustín Moyano from comment #3)
> (In reply to David Nind from comment #2)
>> ...
> Hi David, I got this from KTD, but an example of marcxml would be
> ...

Thanks Agustín!

I removed the 001 tag and changed the name in the 150 tag.

In Postman I created a new HTTP request and added these details:
1. Changed to a POST with the URL as http://127.0.0.1:8081/api/v1/authorities
2. Body: changed to 'raw', pasted in the amended XML for the MARC authority
record, and changed the type to XML
3. Added Headers: 
   . x-authority-type: used TOPIC_TERM as the value
   . Content-Type: used application/marcxml+xml as the value
4. For authorization, add the Basic Auth type with koha as the username and
password

The new authority record was then created!

David

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list