Koha-clms/t/db_dependent/api/v1
Jiří Kozlovský ce7a283d19
Bug 16497: Add /api/v1/libraries
CRUD for libraries via REST API.

GET    /api/v1/libraries              - List all libraries
GET    /api/v1/libraries/{branchcode} - Get one Library
POST   /api/v1/libraries              - Add new Library
DELETE /api/v1/libraries/{branchcode} - Delete Library

Test plan:
  - apply patch
  - run tests: t/db_dependent/api/v1/libraries.t
  - test API with some API tool or simple curl

e.g.:
curl http://host:port/api/v1/libraries
curl http://host:port/api/v1/libraries/cpl

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 96456cadc2)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-25 18:59:40 +00:00
..
acquisitions_vendors.t Bug 18120: /acquisitions/vendors unit tests 2017-09-29 17:13:13 -03:00
auth.t Bug 18137: (QA followup) Make sure the session exists and is expired on expiration tests 2017-09-21 11:27:05 -03:00
auth_authenticate_api_request.t Bug 22071: Regression tests 2019-01-10 14:22:15 +00:00
auth_basic.t Bug 22132: (QA follow-up) set_password now expects a hashref 2019-02-01 15:44:04 +00:00
cities.t Bug 20004: Unit tests 2018-02-16 17:53:41 -03:00
holds.t Bug 21133: Fix use statements order 2018-07-31 16:28:02 -03:00
illrequests.t Bug 21835: (QA follow-up) Fix failing test 2018-11-16 17:29:30 +00:00
libraries.t Bug 16497: Add /api/v1/libraries 2019-02-25 18:59:40 +00:00
oauth.t Bug 20624: Net::OAuth2::AuthorizationServer is not a hard dependency 2018-05-09 12:56:03 -03:00
patrons.t Bug 22107: patrons.t doesn't need to delete existing data 2019-01-14 14:29:55 +00:00
patrons_accounts.t Bug 20944: Add route to add credits to a patron's account 2018-08-31 12:47:00 +00:00
patrons_password.t Bug 17006: Add /patrons/{patron_id}/password 2019-02-01 15:18:45 +00:00
stockrotationstage.t Bug 11897: Use 'stockrotation' permission for the endpoint 2018-10-09 15:46:06 +00:00