Bug 17003: (follow-up) Update definitions according to voted RFC
authorJosef Moravec <josef.moravec@gmail.com>
Fri, 29 Mar 2019 07:53:27 +0000 (07:53 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 1 Jul 2019 15:10:15 +0000 (16:10 +0100)
commit0619aab9971c7f4d4859620abbac7ad2bfe93364
treeb94817d65ef36495086e28a6f5a808df129d098d
parent0404ecec4b619ebe14ac262332870004bb88878c
Bug 17003: (follow-up) Update definitions according to voted RFC

Test plan:
1) Have some patrons with checkouts, some renewable and some not
renewable
2) Use your favorite API tester and access GET
http://koha.url/api/v1/checkouts/{checkout_id}/allows_renewal
3) Check the response is OK according to voted RFC:
https://wiki.koha-community.org/wiki/Checkouts_endpoint_RFC#Checkout_renewability_2
4) prove t/db_dependent/api/v1/checkouts.t

Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Johanna Raisa <johanna.raisa@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Checkouts.pm
api/v1/swagger/definitions.json
api/v1/swagger/definitions/allows_renewal.json [new file with mode: 0644]
api/v1/swagger/definitions/renewability.json [deleted file]
api/v1/swagger/paths.json
api/v1/swagger/paths/checkouts.json
t/db_dependent/api/v1/checkouts.t