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"
19 "description": "A list of checkouts",
21 "$ref": "../definitions.json#/checkouts"
25 "description": "Access forbidden",
26 "schema": { "$ref": "../definitions.json#/error" }
29 "description": "Patron not found",
30 "schema": { "$ref": "../definitions.json#/error" }
33 "x-koha-authorization": {
35 "circulate": "circulate_remaining_permissions"
40 "/checkouts/{checkout_id}": {
42 "x-mojo-to": "Checkouts#get",
43 "operationId": "getCheckout",
44 "tags": ["patrons", "checkouts"],
46 "$ref": "../parameters.json#/checkout_id_pp"
48 "produces": ["application/json"],
51 "description": "Updated borrower's checkout",
52 "schema": { "$ref": "../definitions.json#/checkout" }
55 "description": "Access forbidden",
56 "schema": { "$ref": "../definitions.json#/error" }
59 "description": "Checkout not found",
60 "schema": { "$ref": "../definitions.json#/error" }
63 "x-koha-authorization": {
65 "circulate": "circulate_remaining_permissions"
70 "/checkouts/{checkout_id}/renewal": {
72 "x-mojo-to": "Checkouts#renew",
73 "operationId": "renewCheckout",
74 "tags": ["patrons", "checkouts"],
76 "$ref": "../parameters.json#/checkout_id_pp"
78 "produces": ["application/json"],
81 "description": "Updated borrower's checkout",
82 "schema": { "$ref": "../definitions.json#/checkout" }
85 "description": "Cannot renew checkout",
86 "schema": { "$ref": "../definitions.json#/error" }
89 "description": "Checkout not found",
90 "schema": { "$ref": "../definitions.json#/error" }
93 "x-koha-authorization": {
95 "circulate": "circulate_remaining_permissions"
100 "/checkouts/{checkout_id}/renewability": {
102 "x-mojo-to": "Checkout#renewability",
103 "operationId": "renewabilityCheckout",
104 "tags": ["patrons", "checkouts"],
106 "$ref": "../parameters.json#/checkoutIdPathParam"
108 "produces": ["application/json"],
111 "description": "Checkout renewability",
112 "schema": { "$ref": "../definitions.json#/renewability" }
115 "description": "Forbidden",
116 "schema": { "$ref": "../definitions.json#/error" }
119 "description": "Checkout not found",
120 "schema": { "$ref": "../definitions.json#/error" }
123 "x-koha-authorization": {
125 "circulate": "circulate_remaining_permissions"