[Koha-bugs] [Bug 34055] Add API client class to get items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 17 11:01:32 CEST 2023


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

Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> changed:

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

--- Comment #4 from Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com> ---
Created attachment 153529
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153529&action=edit
Bug 34055: Add API client class to get items

This patch add a new item-api-client.js API client to fetch items using
our /items REST API endpoint.

Test plan:
Add the following two lines to one of the existing Vue component (in
data() for instance) and hit the view that is using it.
  let client = APIClient.item
  client.items.getAll().then((items) => console.log(items))
Notice that you see all the items in the console.

Sponsored-by: BULAC - http://www.bulac.fr/
Signed-off-by: Matt Blenkinsop <matt.blenkinsop at ptfs-europe.com>

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


More information about the Koha-bugs mailing list