Bug 16497: Add /api/v1/libraries
commit96456cadc28e7e4b442da76adb2c9b1ece5a68f1
authorJiří Kozlovský <mail@jkozlovsky.cz>
Sun, 31 Jul 2016 09:46:57 +0000 (31 11:46 +0200)
committerroot <root@f1ebe1bec408>
Tue, 19 Feb 2019 13:52:14 +0000 (19 13:52 +0000)
tree5d7cfa257f0bfc92e1fdb5e44ce8af767f138992
parent47839084fb788d2d5339842dfb5c6029984f2928
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>
Koha/REST/V1/Library.pm [new file with mode: 0644]
api/v1/swagger/definitions.json
api/v1/swagger/definitions/library.json [new file with mode: 0644]
api/v1/swagger/parameters.json
api/v1/swagger/parameters/library.json [new file with mode: 0644]
api/v1/swagger/paths.json
api/v1/swagger/paths/libraries.json [new file with mode: 0644]
api/v1/swagger/x-primitives.json
t/db_dependent/api/v1/libraries.t [new file with mode: 0644]