Browse Source

Bug 19784: Remove reference to 'borrowernumber' param from other endpoints

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>
18.05.x
Tomás Cohen Arazi 5 years ago
committed by Jonathan Druart
parent
commit
87dc9b0ac1
  1. 3
      api/v1/swagger/definitions/hold.json
  2. 7
      api/v1/swagger/paths/holds.json
  3. 6
      api/v1/swagger/paths/illrequests.json

3
api/v1/swagger/definitions/hold.json

@ -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"],

7
api/v1/swagger/paths/holds.json

@ -12,7 +12,10 @@
"type": "integer"
},
{
"$ref": "../parameters.json#/borrowernumberQueryParam"
"name": "borrowernumber",
"in": "query",
"description": "Internal patron identifier",
"type": "integer"
},
{
"name": "reservedate",
@ -171,7 +174,7 @@
"type": "object",
"properties": {
"borrowernumber": {
"description": "Borrower internal identifier",
"description": "Internal patron identifier",
"type": "integer"
},
"biblionumber": {

6
api/v1/swagger/paths/illrequests.json

@ -39,7 +39,11 @@
"required": false,
"type": "integer"
}, {
"$ref": "../parameters.json#/borrowernumberQueryParam"
"name": "borrowernumber",
"in": "query",
"description": "Internal patron identifier",
"required": false,
"type": "integer"
}, {
"name": "completed",
"in": "query",

Loading…
Cancel
Save