Bug 17314: Implement /suggestions routes
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 23 Apr 2021 17:48:11 +0000 (14:48 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 2 Nov 2021 12:42:22 +0000 (08:42 -0400)
commit26f2002fb38bcd6fec919cb3f9bab1b0f80a8180
treedfd293335bd7a4e4238c5950ace51d7dac2bb172
parentc6bb7628b9f40721e0f043a07b767e3311398438
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: Kyle M Hall <kyle@bywatersolutions.com>
Koha/REST/V1/Suggestions.pm [new file with mode: 0644]
Koha/Suggestion.pm
t/db_dependent/api/v1/suggestions.t