{ "/checkouts": { "get": { "x-mojo-to": "Checkout#list", "operationId": "listCheckouts", "tags": ["patrons", "checkouts"], "parameters": [{ "$ref": "../parameters.json#/patron_id_qp" }], "produces": [ "application/json" ], "responses": { "200": { "description": "A list of checkouts", "schema": { "$ref": "../definitions.json#/checkouts" } }, "403": { "description": "Access forbidden", "schema": { "$ref": "../definitions.json#/error" } }, "404": { "description": "Patron not found", "schema": { "$ref": "../definitions.json#/error" } } }, "x-koha-authorization": { "permissions": { "circulate": "circulate_remaining_permissions" } } } }, "/checkouts/{checkout_id}": { "get": { "x-mojo-to": "Checkout#get", "operationId": "getCheckout", "tags": ["patrons", "checkouts"], "parameters": [{ "$ref": "../parameters.json#/checkoutIdPathParam" }], "produces": ["application/json"], "responses": { "200": { "description": "Updated borrower's checkout", "schema": { "$ref": "../definitions.json#/checkout" } }, "403": { "description": "Access forbidden", "schema": { "$ref": "../definitions.json#/error" } }, "404": { "description": "Checkout not found", "schema": { "$ref": "../definitions.json#/error" } } }, "x-koha-authorization": { "permissions": { "circulate": "circulate_remaining_permissions" } } }, "put": { "x-mojo-to": "Checkout#renew", "operationId": "renewCheckout", "tags": ["patrons", "checkouts"], "parameters": [{ "$ref": "../parameters.json#/checkoutIdPathParam" }], "produces": ["application/json"], "responses": { "200": { "description": "Updated borrower's checkout", "schema": { "$ref": "../definitions.json#/checkout" } }, "403": { "description": "Cannot renew checkout", "schema": { "$ref": "../definitions.json#/error" } }, "404": { "description": "Checkout not found", "schema": { "$ref": "../definitions.json#/error" } } }, "x-koha-authorization": { "permissions": { "circulate": "circulate_remaining_permissions" } } } } }