]> git.koha-community.org Git - koha.git/commit
Bug 17428: [REST] Koha::REST::V1::Cities introduced
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Oct 2016 11:26:39 +0000 (13:26 +0200)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 28 Oct 2016 14:42:49 +0000 (14:42 +0000)
commit29ba2720043b493fc96ed4238a4f2a3a76b9192c
tree8e9532793a6d5311c47c9c207e84c43b809ed32f
parent217d0df5175b4fbd907b747d3f29bf0a1d6d2c2b
Bug 17428: [REST] Koha::REST::V1::Cities introduced

This patch introduces full CRUD for Koha::Cit(ies|y) classes through
the REST api. To test, point your browser to /api/v1/cities to use
HTTPRequester/Postman (or the like).

And of course, run the unit tests:
- Apply the patches
- Update your minified swagger file:
  $ cd kohaclone/
  $ misc/devel/minifySwagger.pl -s api/v1/swagger/swagger.json \
                                -d api/v1/swagger/swagger.min.json
- Run:
  $ prove t/db_dependent/api/v1/cities.t
=> SUCCESS: Tests should return green, and no warnings.
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Claire Gravely <claire_gravely@hotmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1/Cities.pm [new file with mode: 0644]