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

Arthur Suzuki <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #164702|0                           |1
        is obsolete|                            |

--- Comment #70 from Arthur Suzuki <[email protected]> ---
Created attachment 165050
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=165050&action=edit
Bug 31791: Add x-record-source-id header to POST /biblios

This patch adds support for setting the record source on the API. It
does so by adding support for a new header `x-record-source-id`.

Setting the record source is restricted to patrons with the
`set_record_sources` permission.

A 403 error is returned on an attempt to set it without the correct
permissions.

The feature is documented on the spec.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/biblios.t
=> SUCCESS: Tests pass! Tests cover the right use cases!
3. Play with Postman (or similar)
4. Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Martin Renvoize <[email protected]>
Signed-off-by: Lucas Gass <[email protected]>
Signed-off-by: Arthur Suzuki <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to