]> git.koha-community.org Git - koha.git/commit
Bug 23770: (follow-up) Use ->to_api in /cities
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Oct 2019 18:43:10 +0000 (15:43 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 21 Oct 2019 09:04:17 +0000 (10:04 +0100)
commitf4936fd46a284aeb1976965b83a6a29caefa2890
tree76b9ccb3f0f0a25c60105f7d2f4fee63d8c4aaf4
parent1800a2e6b810d2ec789ece4b9b9c1fb2c3ad666d
Bug 23770: (follow-up) Use ->to_api in /cities

This patch aims to prove the behaviour does not differ. So you can run
the tests for the endpoints, and the behaviour remains.

The mappings and methods cannot be removed until $c->objects->search is
fixed to make use of them as well. That will happen once all used
Koha::Object-based classes implement the mappings.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/cities.t
=> SUCCESS: Tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Cities.pm