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"
52 "/checkouts/{checkout_id}": {
54 "x-mojo-to": "Checkouts#get",
55 "operationId": "getCheckout",
56 "tags": ["patrons", "checkouts"],
58 "$ref": "../parameters.json#/checkout_id_pp"
60 "produces": ["application/json"],
63 "description": "Updated borrower's checkout",
64 "schema": { "$ref": "../definitions.json#/checkout" }
67 "description": "Access forbidden",
68 "schema": { "$ref": "../definitions.json#/error" }
71 "description": "Checkout not found",
72 "schema": { "$ref": "../definitions.json#/error" }
75 "x-koha-authorization": {
77 "circulate": "circulate_remaining_permissions"
85 "/checkouts/{checkout_id}/renewal": {
87 "x-mojo-to": "Checkouts#renew",
88 "operationId": "renewCheckout",
89 "tags": ["patrons", "checkouts"],
91 { "$ref": "../parameters.json#/checkout_id_pp" },
92 { "$ref": "../parameters.json#/seen_pp" }
94 "produces": ["application/json"],
97 "description": "Updated borrower's checkout",
98 "schema": { "$ref": "../definitions.json#/checkout" }
101 "description": "Cannot renew checkout",
102 "schema": { "$ref": "../definitions.json#/error" }
105 "description": "Checkout not found",
106 "schema": { "$ref": "../definitions.json#/error" }
109 "x-koha-authorization": {
111 "circulate": "circulate_remaining_permissions"
116 "/checkouts/{checkout_id}/allows_renewal": {
118 "x-mojo-to": "Checkouts#allows_renewal",
119 "operationId": "allows_renewalCheckout",
120 "tags": ["patrons", "checkouts"],
122 "$ref": "../parameters.json#/checkout_id_pp"
124 "produces": ["application/json"],
127 "description": "Checkout renewability information",
128 "schema": { "$ref": "../definitions.json#/allows_renewal" }
131 "description": "Forbidden",
132 "schema": { "$ref": "../definitions.json#/error" }
135 "description": "Checkout not found",
136 "schema": { "$ref": "../definitions.json#/error" }
139 "x-koha-authorization": {
141 "circulate": "circulate_remaining_permissions"