[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 15 15:23:49 CEST 2019


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

--- Comment #18 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Jonathan Druart from comment #17)
> Looks great to me!
> 
> * Can we now remove ->_to_api (and so $to_api_mappinp) from
> Koha/REST/V1/Cities.pm

we still can't.

> * What about ->_to_model (and so $to_model_mapping)?

I was thinking of:

Koha::Object->new_from_api
Koha::Object->update_from_api

> What's next?

The next step is to file a bug in which we do the same for the other
controllers. And then another one for implementing those two methods I propose.
And then another one depending on these, for changing
Koha::REST::Plugins::Objects so it uses the internal methods instead of
expecting the to_api and to_model params.

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


More information about the Koha-bugs mailing list