[koha-commits] main Koha release repository branch master updated. v19.05.00-618-ge9e6537
Git repo owner
gitmaster at git.koha-community.org
Thu Sep 12 18:04:02 CEST 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via e9e6537fae1dd921a95f55394ff2b463be8c834a (commit)
from 13f83dc6e3dc5aed5651cedda78eb13e63e8a227 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e9e6537fae1dd921a95f55394ff2b463be8c834a
Author: Lari Taskula <larit at student.uef.fi>
Date: Mon Jun 27 16:03:49 2016 +0300
Bug 16825: Add API route for getting an item
GET /api/v1/items/{item_id} Gets one Item
This patch adds route to get one item from koha.items table.
To test:
1. Apply patch
2. Open a browser tab on Koha staff and log in (to create CGISESSID
cookie).
3. Send GET request to http://yourlibrary/api/v1/items/YYY
where YYY is an existing itemnumber.
4. Make sure the returned data is correct.
5. Run unit tests in t/db_dependent/api/v1/items.t
Sponsored-by: Koha-Suomi Oy
Signed-off-by: Josef Moravec <josef.moravec at gmail.com>
Signed-off-by: Johanna Raisa <johanna.raisa at gmail.com>
Signed-off-by: Michal Denar <black23 at gmail.com>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize at ptfs-europe.com>
-----------------------------------------------------------------------
Summary of changes:
Koha/REST/V1/Items.pm | 216 ++++++++++++++++++++++++++++++++++
api/v1/swagger/definitions.json | 3 +
api/v1/swagger/definitions/item.json | 183 ++++++++++++++++++++++++++++
api/v1/swagger/parameters.json | 3 +
api/v1/swagger/parameters/item.json | 9 ++
api/v1/swagger/paths.json | 3 +
api/v1/swagger/paths/items.json | 52 ++++++++
t/db_dependent/api/v1/items.t | 81 +++++++++++++
8 files changed, 550 insertions(+)
create mode 100644 Koha/REST/V1/Items.pm
create mode 100644 api/v1/swagger/definitions/item.json
create mode 100644 api/v1/swagger/parameters/item.json
create mode 100644 api/v1/swagger/paths/items.json
create mode 100644 t/db_dependent/api/v1/items.t
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list