Bug 17314: Implement /suggestions routes
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Apr 2021 17:48:11 +0000 (14:48 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 28 Oct 2021 15:32:34 +0000 (17:32 +0200)
commite68f71534006d8039911bb5244a5ce94550601a8
tree0243eb33d8421df63a403cce6c4030997ffc82ed
parent8cc404b651fb848fc840838e121ed684f1762929
Bug 17314: Implement /suggestions routes

This patch introduces routes to handle purchase suggestions, from the
staff POV.

Tests are added as well.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/suggestions.t
=> SUCCESS: Tests pass! And they are meaningful!
3. Play with your favourite REST tool (Postman?)
4. Sign off :-D

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Suggestions.pm [new file with mode: 0644]
Koha/Suggestion.pm