[Koha-bugs] [Bug 28201] Add API routes to update and create biblio record
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 8 12:08:53 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28201
--- Comment #2 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 128360
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128360&action=edit
Bug 28201: Add API route to create a biblio
Example usage:
POST /api/v1/biblios
Accept: application/json
{
"marcxml": "<record>...</record>",
"framework_id": "FA"
}
It can return data in the same formats as GET /api/v1/biblios/:biblio_id
depending on the value of the Accept request header:
- application/json
- application/marcxml+xml
- application/marc-in-json
- application/marc
- text/plain
Test plan:
1. Try requesting this endpoint with your favorite API tool
(I recommend https://github.com/frigus02/RESTer)
2. Run `prove t/db_dependent/api/v1/biblios/post.t`
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list