[Koha-bugs] [Bug 31796] REST API: PUT endpoint for Authorities
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 20 23:59:55 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31796
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david at davidnind.com
Text to go in the| |This adds a PUT endpoint to
release notes| |the REST API for modifying
| |authority records.
--- Comment #3 from David Nind <david at davidnind.com> ---
Testing notes (using KTD) - similar to bug 31795 I used Postman to test with
these details:
1. Changed to a PUT with the URL as
http://127.0.0.1:8081/api/v1/authorities/973 (any existing authority will work)
2. Body: changed to 'raw', pasted in the XML with the 150 field to change the
heading[1], 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, added the Basic Auth type with koha as the username and
password
The heading in 150 was changed!
[1] XML used to change the heading:
<?xml version="1.0" encoding="UTF-8"?>
<record
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
xmlns="http://www.loc.gov/MARC21/slim">
<datafield tag="150" ind1=" " ind2=" ">
<subfield code="a">This is a new heading title</subfield>
</datafield>
</record>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list