Koha-clms/Koha/REST
Tomas Cohen Arazi cfcc34fde7 Bug 28424: Fix patron credits route (POST)
This patch makes the route follow the coding guidelines and thus:
- Return the generated object
- Use the status code 201 for the response

To test:
1. Apply the tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons_accounts.t
=> FAIL: Tests fail. The reponse body and status is incorrect
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass!
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-25 09:28:17 +02:00
..
Plugin Bug 27760: (QA follow-up) Improve POD 2021-05-04 14:22:02 +02:00
V1 Bug 28424: Fix patron credits route (POST) 2021-05-25 09:28:17 +02:00
V1.pm Bug 28189: (QA folloq-up) Fix fallback case 2021-05-12 17:39:36 +02:00