4 "x-mojo-to": "Checkouts#list",
5 "operationId": "listCheckouts",
6 "tags": ["patrons", "checkouts"],
8 "$ref": "../parameters.json#/patron_id_qp"
10 "$ref": "../parameters.json#/page"
12 "$ref": "../parameters.json#/per_page"
14 "$ref": "../parameters.json#/match"
16 "$ref": "../parameters.json#/order_by"
20 "description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.",
28 "description": "A list of checkouts",
30 "$ref": "../definitions.json#/checkouts"
34 "description": "Access forbidden",
35 "schema": { "$ref": "../definitions.json#/error" }
38 "description": "Patron not found",
39 "schema": { "$ref": "../definitions.json#/error" }
42 "x-koha-authorization": {
44 "circulate": "circulate_remaining_permissions"
49 "/checkouts/{checkout_id}": {
51 "x-mojo-to": "Checkouts#get",
52 "operationId": "getCheckout",
53 "tags": ["patrons", "checkouts"],
55 "$ref": "../parameters.json#/checkout_id_pp"
57 "produces": ["application/json"],
60 "description": "Updated borrower's checkout",
61 "schema": { "$ref": "../definitions.json#/checkout" }
64 "description": "Access forbidden",
65 "schema": { "$ref": "../definitions.json#/error" }
68 "description": "Checkout not found",
69 "schema": { "$ref": "../definitions.json#/error" }
72 "x-koha-authorization": {
74 "circulate": "circulate_remaining_permissions"
79 "/checkouts/{checkout_id}/renewal": {
81 "x-mojo-to": "Checkouts#renew",
82 "operationId": "renewCheckout",
83 "tags": ["patrons", "checkouts"],
85 "$ref": "../parameters.json#/checkout_id_pp"
87 "produces": ["application/json"],
90 "description": "Updated borrower's checkout",
91 "schema": { "$ref": "../definitions.json#/checkout" }
94 "description": "Cannot renew checkout",
95 "schema": { "$ref": "../definitions.json#/error" }
98 "description": "Checkout not found",
99 "schema": { "$ref": "../definitions.json#/error" }
102 "x-koha-authorization": {
104 "circulate": "circulate_remaining_permissions"
109 "/checkouts/{checkout_id}/allows_renewal": {
111 "x-mojo-to": "Checkouts#allows_renewal",
112 "operationId": "allows_renewalCheckout",
113 "tags": ["patrons", "checkouts"],
115 "$ref": "../parameters.json#/checkout_id_pp"
117 "produces": ["application/json"],
120 "description": "Checkout renewability information",
121 "schema": { "$ref": "../definitions.json#/allows_renewal" }
124 "description": "Forbidden",
125 "schema": { "$ref": "../definitions.json#/error" }
128 "description": "Checkout not found",
129 "schema": { "$ref": "../definitions.json#/error" }
132 "x-koha-authorization": {
134 "circulate": "circulate_remaining_permissions"