[Koha-bugs] [Bug 19784] Adapt /v1/patrons to new naming guidelines
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Feb 21 16:48:55 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19784
--- Comment #32 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 72028
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72028&action=edit
Bug 19784: Adapt /v1/patrons to new naming guidelines
This patch introduces two functions to the patrons endpoint:
- _to_api
- _to_model
This are in charge of field mappings in order to comply with the
guidelines.
Koha::REST::V1:Auth is adjusted to handle 'patron_id' as well. 'borrowernumber'
handling is kept until the existing endpoints get updated.
To test:
- Apply the patches
- Run:
$ kshell
k$ prove t/db_dependent/api/v1/*.t
=> SUCCESS: Tests pass!
- Sign off :-D
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list