Bug 13895: (follow-up) Adapt checkout endpoint to openapi, update terminology
[koha-equinox.git] / api / v1 / swagger / paths / checkouts.json
index e49a33e..54aadd9 100644 (file)
@@ -1,10 +1,11 @@
 {
   "/checkouts": {
     "get": {
+      "x-mojo-to": "Checkout#list",
       "operationId": "listCheckouts",
       "tags": ["patrons", "checkouts"],
       "parameters": [{
-        "$ref": "../parameters.json#/borrowernumberQueryParam"
+        "$ref": "../parameters.json#/patron_id_qp"
       }],
       "produces": [
         "application/json"
@@ -26,8 +27,6 @@
         }
       },
       "x-koha-authorization": {
-        "allow-owner": true,
-        "allow-guarantor": true,
         "permissions": {
           "circulate": "circulate_remaining_permissions"
         }
@@ -36,6 +35,7 @@
   },
   "/checkouts/{checkout_id}": {
     "get": {
+      "x-mojo-to": "Checkout#get",
       "operationId": "getCheckout",
       "tags": ["patrons", "checkouts"],
       "parameters": [{
         }
       },
       "x-koha-authorization": {
-        "allow-owner": true,
-        "allow-guarantor": true,
         "permissions": {
           "circulate": "circulate_remaining_permissions"
         }
       }
     },
     "put": {
+      "x-mojo-to": "Checkout#renew",
       "operationId": "renewCheckout",
       "tags": ["patrons", "checkouts"],
       "parameters": [{
@@ -86,8 +85,6 @@
         }
       },
       "x-koha-authorization": {
-        "allow-owner": true,
-        "allow-guarantor": true,
         "permissions": {
           "circulate": "circulate_remaining_permissions"
         }