Bug 19784: Remove reference to 'borrowernumber' param from other endpoints
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 8 Dec 2017 12:25:35 +0000 (09:25 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 29 Mar 2018 14:42:08 +0000 (11:42 -0300)
This patch removes the $ref occurences for borrowernumber in not
patron-specific endpoints. 'borrowernumber' is still used on them, but as a
hardcoded parameter. The param rename will happen on a separate bug for
each endpoint.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/definitions/hold.json
api/v1/swagger/paths/holds.json
api/v1/swagger/paths/illrequests.json

index 8f91aed..626910b 100644 (file)
@@ -5,7 +5,8 @@
       "$ref": "../x-primitives.json#/reserve_id"
     },
     "borrowernumber": {
-      "$ref": "../x-primitives.json#/borrowernumber"
+      "type": "integer",
+      "description": "Internal patron identifier"
     },
     "reservedate": {
       "type": ["string", "null"],
index 6bbcd40..453533a 100644 (file)
           "type": "integer"
         },
         {
-          "$ref": "../parameters.json#/borrowernumberQueryParam"
+          "name": "borrowernumber",
+          "in": "query",
+          "description": "Internal patron identifier",
+          "type": "integer"
         },
         {
           "name": "reservedate",
             "type": "object",
             "properties": {
               "borrowernumber": {
-                "description": "Borrower internal identifier",
+                "description": "Internal patron identifier",
                 "type": "integer"
               },
               "biblionumber": {
index 21fd76b..13ec426 100644 (file)
                 "required": false,
                 "type": "integer"
             }, {
-                "$ref": "../parameters.json#/borrowernumberQueryParam"
+                "name": "borrowernumber",
+                "in": "query",
+                "description": "Internal patron identifier",
+                "required": false,
+                "type": "integer"
             }, {
                 "name": "completed",
                 "in": "query",