Lari Taskula <> changed:

           What    |Removed                     |Added
  Attachment #56122|0                           |1
        is obsolete|                            |

--- Comment #18 from Lari Taskula <> ---
Created attachment 56123
Bug 16825: Add API route for getting an item

GET /api/v1/items/{itemnumber} Gets one Item

This patch adds route to get one item from koha.items table. This table has
a column "itemnotes_nonpublic", which should not be returned if the user has no
catalogue permission.

To test:
1. Apply patch and run
   perl misc/devel/ -s api/v1/swagger/swagger.json -d
2. Open a browser tab on Koha staff and log in (to create CGISESSID
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

Signed-off-by: jirislav <>
Signed-off-by: Benjamin Rokseth <>

You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
Koha-bugs mailing list
website :
git :
bugs :

Reply via email to