[Koha-bugs] [Bug 23770] Add Koha::Object(s)->to_api method

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 8 21:44:37 CEST 2019


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

Josef Moravec <josef.moravec at gmail.com> changed:

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

--- Comment #9 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 93891
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93891&action=edit
Bug 23770: Add Koha::Object(s)->to_api method

Generic method that changes the attribute names of an object in the
presence of the to_api_mapping method. It otherwise falls back to
returning the TO_JSON output.

This is WIP submitted early for scrutiny. Tests and example usage in an
API controller coming.

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list