4 "x-mojo-to": "Checkouts#list",
5 "operationId": "listCheckouts",
7 "summary": "List checkouts",
9 "$ref": "../parameters.json#/patron_id_qp"
11 "$ref": "../parameters.json#/page"
13 "$ref": "../parameters.json#/per_page"
15 "$ref": "../parameters.json#/match"
17 "$ref": "../parameters.json#/order_by"
19 "$ref": "../parameters.json#/q_param"
21 "$ref": "../parameters.json#/q_body"
23 "$ref": "../parameters.json#/q_header"
27 "description": "By default, current checkouts are returned, when this is true then checked in checkouts are returned as result.",
35 "description": "A list of checkouts",
37 "$ref": "../definitions.json#/checkouts"
41 "description": "Access forbidden",
42 "schema": { "$ref": "../definitions.json#/error" }
45 "description": "Patron not found",
46 "schema": { "$ref": "../definitions.json#/error" }
49 "x-koha-authorization": {
51 "circulate": "circulate_remaining_permissions"
59 "/checkouts/{checkout_id}": {
61 "x-mojo-to": "Checkouts#get",
62 "operationId": "getCheckout",
63 "tags": ["checkouts"],
64 "summary": "Get checkout",
66 "$ref": "../parameters.json#/checkout_id_pp"
68 "produces": ["application/json"],
71 "description": "Updated borrower's checkout",
72 "schema": { "$ref": "../definitions.json#/checkout" }
75 "description": "Access forbidden",
76 "schema": { "$ref": "../definitions.json#/error" }
79 "description": "Checkout not found",
80 "schema": { "$ref": "../definitions.json#/error" }
83 "x-koha-authorization": {
85 "circulate": "circulate_remaining_permissions"
93 "/checkouts/{checkout_id}/renewal": {
95 "x-mojo-to": "Checkouts#renew",
96 "operationId": "renewCheckout",
97 "tags": ["checkouts"],
98 "summary": "Renew a checkout",
100 { "$ref": "../parameters.json#/checkout_id_pp" },
101 { "$ref": "../parameters.json#/seen_pp" }
103 "produces": ["application/json"],
106 "description": "Updated borrower's checkout",
107 "schema": { "$ref": "../definitions.json#/checkout" }
110 "description": "Cannot renew checkout",
111 "schema": { "$ref": "../definitions.json#/error" }
114 "description": "Checkout not found",
115 "schema": { "$ref": "../definitions.json#/error" }
118 "x-koha-authorization": {
120 "circulate": "circulate_remaining_permissions"
125 "/checkouts/{checkout_id}/allows_renewal": {
127 "x-mojo-to": "Checkouts#allows_renewal",
128 "operationId": "allows_renewalCheckout",
129 "tags": ["checkouts"],
130 "summary": "Get renewability for a checkout",
132 "$ref": "../parameters.json#/checkout_id_pp"
134 "produces": ["application/json"],
137 "description": "Checkout renewability information",
138 "schema": { "$ref": "../definitions.json#/allows_renewal" }
141 "description": "Forbidden",
142 "schema": { "$ref": "../definitions.json#/error" }
145 "description": "Checkout not found",
146 "schema": { "$ref": "../definitions.json#/error" }
149 "x-koha-authorization": {
151 "circulate": "circulate_remaining_permissions"