Bug 7317: Overload Koha::Illrequest::TO_JSON
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 24 Oct 2017 16:43:51 +0000 (13:43 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Nov 2017 14:42:13 +0000 (11:42 -0300)
commit81df964bbd0337df0a202cbec2fc96a2cba3ec33
tree0d56350050bdf260b35ed07bf574e517d28b56b6
parent2d971d15b57579c2185397b565cdc33eecdd1020
Bug 7317: Overload Koha::Illrequest::TO_JSON

This patch implements an overloaded TO_JSON method, that introduces
the option to (selectively) embed information required on the REST
api.

Tests are included for the new method.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Illrequests.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Illrequest.pm
t/db_dependent/Illrequests.t