Koha/api/v1/swagger/definitions/allows_renewal.json
Josef Moravec 0619aab997
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>
2019-07-01 16:10:15 +01:00

21 lines
518 B
JSON

{
"type": "object",
"properties": {
"allows_renewal": {
"type": "boolean",
"description": "Renewability status; true = renewable, false = not renewable"
},
"max_renewals": {
"type": "integer",
"description": "Maximum number of possible renewals"
},
"current_renewals": {
"type": "integer",
"description": "Current used renewals"
},
"error": {
"type": ["string", "null"],
"description": "Description on false allows_renewal."
}
}
}