4 "x-mojo-to": "Checkout#list",
5 "operationId": "listCheckouts",
6 "tags": ["patrons", "checkouts"],
8 "$ref": "../parameters.json#/patron_id_qp"
15 "description": "A list of checkouts",
17 "$ref": "../definitions.json#/checkouts"
21 "description": "Access forbidden",
22 "schema": { "$ref": "../definitions.json#/error" }
25 "description": "Patron not found",
26 "schema": { "$ref": "../definitions.json#/error" }
29 "x-koha-authorization": {
31 "circulate": "circulate_remaining_permissions"
36 "/checkouts/{checkout_id}": {
38 "x-mojo-to": "Checkout#get",
39 "operationId": "getCheckout",
40 "tags": ["patrons", "checkouts"],
42 "$ref": "../parameters.json#/checkout_id_pp"
44 "produces": ["application/json"],
47 "description": "Updated borrower's checkout",
48 "schema": { "$ref": "../definitions.json#/checkout" }
51 "description": "Access forbidden",
52 "schema": { "$ref": "../definitions.json#/error" }
55 "description": "Checkout not found",
56 "schema": { "$ref": "../definitions.json#/error" }
59 "x-koha-authorization": {
61 "circulate": "circulate_remaining_permissions"
66 "/checkouts/{checkout_id}/renewal": {
68 "x-mojo-to": "Checkout#renew",
69 "operationId": "renewCheckout",
70 "tags": ["patrons", "checkouts"],
72 "$ref": "../parameters.json#/checkout_id_pp"
74 "produces": ["application/json"],
77 "description": "Updated borrower's checkout",
78 "schema": { "$ref": "../definitions.json#/checkout" }
81 "description": "Cannot renew checkout",
82 "schema": { "$ref": "../definitions.json#/error" }
85 "description": "Checkout not found",
86 "schema": { "$ref": "../definitions.json#/error" }
89 "x-koha-authorization": {
91 "circulate": "circulate_remaining_permissions"