Browse Source
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>remotes/origin/19.11.x
7 changed files with 67 additions and 29 deletions
@ -0,0 +1,21 @@ |
|||
{ |
|||
"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." |
|||
} |
|||
} |
|||
} |
@ -1,13 +0,0 @@ |
|||
{ |
|||
"type": "object", |
|||
"properties": { |
|||
"renewable": { |
|||
"type": "boolean", |
|||
"description": "Renewability status; true = renewable, false = not renewable" |
|||
}, |
|||
"error": { |
|||
"type": ["string", "null"], |
|||
"description": "Description on false renewability." |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue