[Koha-bugs] [Bug 23667] Add API route for listing items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 2 12:00:07 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23667

Jesse Maseto <jesse at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #93230|0                           |1
        is obsolete|                            |

--- Comment #9 from Jesse Maseto <jesse at bywatersolutions.com> ---
Created attachment 93405
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93405&action=edit
Bug 23667: Add route to GET /items

This patchset introduces a route to fetch items. It relies on the
already implemented code/mappings to get a single item.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/items.t
=> SUCCESS: Tests pass!
- Try the endpoint with your favourite API tool (Postman?)
- Sign off :-D

Note: to do exact searching on barcode, you need to build the query like
this:

GET /api/v1/items?external_id=<your_barcode>&_match=exact

Signed-off-by: Jesse Maseto <jesse at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list