]> git.koha-community.org Git - koha.git/commit
Bug 16497: Add /api/v1/libraries
authorJiří Kozlovský <mail@jkozlovsky.cz>
Sun, 31 Jul 2016 09:46:57 +0000 (11:46 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 25 Feb 2019 18:59:40 +0000 (18:59 +0000)
commitce7a283d195a3a7ea6aac5a47cc75ce05556e85b
treeeb6d5dea1c4f246f5018aabbc90cee810c81e270
parente6d01843115184a1e83f85d6c8e9880162f8fd70
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 96456cadc28e7e4b442da76adb2c9b1ece5a68f1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.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]