diff --git a/api/v1/parameters.json b/api/v1/parameters.json index 9778ac7088..b20e19f666 100644 --- a/api/v1/parameters.json +++ b/api/v1/parameters.json @@ -2,6 +2,9 @@ "borrowernumberPathParam": { "$ref": "parameters/patron.json#/borrowernumberPathParam" }, + "borrowernumberQueryParam": { + "$ref": "parameters/patron.json#/borrowernumberQueryParam" + }, "holdIdPathParam": { "$ref": "parameters/hold.json#/holdIdPathParam" } diff --git a/api/v1/parameters/patron.json b/api/v1/parameters/patron.json index 285ee047a7..2b204c17ca 100644 --- a/api/v1/parameters/patron.json +++ b/api/v1/parameters/patron.json @@ -5,5 +5,12 @@ "description": "Internal patron identifier", "required": true, "type": "integer" + }, + "borrowernumberQueryParam": { + "name": "borrowernumber", + "in": "query", + "description": "Internal borrower identifier", + "required": true, + "type": "integer" } } diff --git a/api/v1/paths/holds.json b/api/v1/paths/holds.json index a56e5830e2..cd9713bc3f 100644 --- a/api/v1/paths/holds.json +++ b/api/v1/paths/holds.json @@ -11,10 +11,7 @@ "type": "integer" }, { - "name": "borrowernumber", - "in": "query", - "description": "Internal borrower identifier", - "type": "integer" + "$ref": "../parameters.json#/borrowernumberQueryParam" }, { "name": "reservedate",