@@ -, +, @@ --- Koha/REST/V1/Checkout.pm | 4 ++-- api/v1/swagger/definitions/checkout.json | 6 +++++- api/v1/swagger/parameters/checkout.json | 2 +- api/v1/swagger/paths/checkouts.json | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) --- a/Koha/REST/V1/Checkout.pm +++ a/Koha/REST/V1/Checkout.pm @@ -186,7 +186,7 @@ our $to_api_mapping = { branchcode => 'library_id', returndate => 'checkin_date', lastreneweddate => 'last_renewed_date', - issuedate => 'checked_out_date', + issuedate => 'checkout_date', notedate => 'note_date', }; @@ -202,7 +202,7 @@ our $to_model_mapping = { library_id => 'branchcode', checkin_date => 'returndate', last_renewed_date => 'lastreneweddate', - checked_out_date => 'issuedate', + checkout_date => 'issuedate', note_date => 'notedate', }; --- a/api/v1/swagger/definitions/checkout.json +++ a/api/v1/swagger/definitions/checkout.json @@ -39,11 +39,15 @@ "type": "boolean", "description": "Auto renewal" }, + "auto_renew_error": { + "type": ["string", "null"], + "description": "Auto renewal error" + }, "timestamp": { "type": "string", "description": "Last update time" }, - "checked_out_date": { + "checkout_date": { "type": "string", "format": "date-time", "description": "Date the item was issued" --- a/api/v1/swagger/parameters/checkout.json +++ a/api/v1/swagger/parameters/checkout.json @@ -1,5 +1,5 @@ { - "checkoutIdPathParam": { + "checkout_id_pp": { "name": "checkout_id", "in": "path", "description": "Internal checkout identifier", --- a/api/v1/swagger/paths/checkouts.json +++ a/api/v1/swagger/paths/checkouts.json @@ -39,7 +39,7 @@ "operationId": "getCheckout", "tags": ["patrons", "checkouts"], "parameters": [{ - "$ref": "../parameters.json#/checkoutIdPathParam" + "$ref": "../parameters.json#/checkout_id_pp" }], "produces": ["application/json"], "responses": { --