View | Details | Raw Unified | Return to bug 13895
Collapse All | Expand All

(-)a/Koha/REST/V1/Checkout.pm (-2 / +2 lines)
Lines 186-192 our $to_api_mapping = { Link Here
186
    branchcode      => 'library_id',
186
    branchcode      => 'library_id',
187
    returndate      => 'checkin_date',
187
    returndate      => 'checkin_date',
188
    lastreneweddate => 'last_renewed_date',
188
    lastreneweddate => 'last_renewed_date',
189
    issuedate       => 'checked_out_date',
189
    issuedate       => 'checkout_date',
190
    notedate        => 'note_date',
190
    notedate        => 'note_date',
191
};
191
};
192
192
Lines 202-208 our $to_model_mapping = { Link Here
202
    library_id        => 'branchcode',
202
    library_id        => 'branchcode',
203
    checkin_date      => 'returndate',
203
    checkin_date      => 'returndate',
204
    last_renewed_date => 'lastreneweddate',
204
    last_renewed_date => 'lastreneweddate',
205
    checked_out_date  => 'issuedate',
205
    checkout_date     => 'issuedate',
206
    note_date         => 'notedate',
206
    note_date         => 'notedate',
207
};
207
};
208
208
(-)a/api/v1/swagger/definitions/checkout.json (-1 / +5 lines)
Lines 39-49 Link Here
39
      "type": "boolean",
39
      "type": "boolean",
40
      "description": "Auto renewal"
40
      "description": "Auto renewal"
41
    },
41
    },
42
    "auto_renew_error": {
43
      "type": ["string", "null"],
44
      "description": "Auto renewal error"
45
    },
42
    "timestamp": {
46
    "timestamp": {
43
      "type": "string",
47
      "type": "string",
44
      "description": "Last update time"
48
      "description": "Last update time"
45
    },
49
    },
46
    "checked_out_date": {
50
    "checkout_date": {
47
      "type": "string",
51
      "type": "string",
48
      "format": "date-time",
52
      "format": "date-time",
49
      "description": "Date the item was issued"
53
      "description": "Date the item was issued"
(-)a/api/v1/swagger/parameters/checkout.json (-1 / +1 lines)
Lines 1-5 Link Here
1
{
1
{
2
  "checkoutIdPathParam": {
2
  "checkout_id_pp": {
3
    "name": "checkout_id",
3
    "name": "checkout_id",
4
    "in": "path",
4
    "in": "path",
5
    "description": "Internal checkout identifier",
5
    "description": "Internal checkout identifier",
(-)a/api/v1/swagger/paths/checkouts.json (-2 / +1 lines)
Lines 39-45 Link Here
39
      "operationId": "getCheckout",
39
      "operationId": "getCheckout",
40
      "tags": ["patrons", "checkouts"],
40
      "tags": ["patrons", "checkouts"],
41
      "parameters": [{
41
      "parameters": [{
42
        "$ref": "../parameters.json#/checkoutIdPathParam"
42
        "$ref": "../parameters.json#/checkout_id_pp"
43
      }],
43
      }],
44
      "produces": ["application/json"],
44
      "produces": ["application/json"],
45
      "responses": {
45
      "responses": {
46
- 

Return to bug 13895