Koha-clms/Koha/REST
Tomas Cohen Arazi 477cee1ae9
Bug 20942: Add route to get patron's account balance
This patch implements the /patrons/{patron_id}/account endpoint. It can
be used to get the patron's balance information, including outstanding
lines.

To test:
- Apply this patchset
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons_accounts.t
=> SUCCESS: tests pass!
- Make your favourite REST testing tool (RESTer on Firefox?) do:
  GET /api/v1/patrons/{patron_id}/account
to a valid patron_id. Play with Koha's UI to add credits/payments and
notice the endpoint returns the right info following the voted RFC. [1]
- Sign off :-D

[1] https://wiki.koha-community.org/wiki/Patrons_account_lines_endpoint_RFC

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit d079c80b05)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-08-02 18:03:36 +01:00
..
Plugin Bug 19686: (follow-up) Add to_api param for completeness 2018-02-16 14:05:20 -03:00
V1 Bug 20942: Add route to get patron's account balance 2018-08-02 18:03:36 +01:00
V1.pm Bug 20402: Remove dependency on Mojo::Plugin::OAuth2::Server 2018-05-08 15:55:42 -03:00