Bug 13895: Adapt naming according to voted RFC

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Josef Moravec 2019-03-13 16:03:09 +00:00 committed by Nick Clemens
parent 47ad7afcca
commit a142369b30
5 changed files with 12 additions and 8 deletions

View File

@ -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',
};

View File

@ -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"

View File

@ -17,8 +17,8 @@
"vendoridPathParam": {
"$ref": "parameters/vendor.json#/vendoridPathParam"
},
"checkoutIdPathParam": {
"$ref": "parameters/checkout.json#/checkoutIdPathParam"
"checkout_id_pp": {
"$ref": "parameters/checkout.json#/checkout_id_pp"
},
"match": {
"name": "_match",

View File

@ -1,5 +1,5 @@
{
"checkoutIdPathParam": {
"checkout_id_pp": {
"name": "checkout_id",
"in": "path",
"description": "Internal checkout identifier",

View File

@ -39,7 +39,7 @@
"operationId": "getCheckout",
"tags": ["patrons", "checkouts"],
"parameters": [{
"$ref": "../parameters.json#/checkoutIdPathParam"
"$ref": "../parameters.json#/checkout_id_pp"
}],
"produces": ["application/json"],
"responses": {
@ -69,7 +69,7 @@
"operationId": "renewCheckout",
"tags": ["patrons", "checkouts"],
"parameters": [{
"$ref": "../parameters.json#/checkoutIdPathParam"
"$ref": "../parameters.json#/checkout_id_pp"
}],
"produces": ["application/json"],
"responses": {