View | Details | Raw Unified | Return to bug 16826
Collapse All | Expand All

(-)a/api/v1/swagger/definitions.json (+9 lines)
Lines 1-4 Link Here
1
{
1
{
2
  "availability": {
3
    "$ref": "definitions/availability.json"
4
  },
5
  "availability/biblio": {
6
    "$ref": "definitions/availability/biblio.json"
7
  },
8
  "availability/item": {
9
    "$ref": "definitions/availability/item.json"
10
  },
2
  "city": {
11
  "city": {
3
    "$ref": "definitions/city.json"
12
    "$ref": "definitions/city.json"
4
  },
13
  },
(-)a/api/v1/swagger/definitions/availability.json (+18 lines)
Line 0 Link Here
1
{
2
  "type": "object",
3
  "properties": {
4
    "available": {
5
      "type": "boolean",
6
      "description": "Availability status"
7
    },
8
    "confirmations": {
9
      "$ref": "./availability/reason.json"
10
    },
11
    "notes": {
12
      "$ref": "./availability/reason.json"
13
    },
14
    "unavailabilities": {
15
      "$ref": "./availability/reason.json"
16
    }
17
  }
18
}
(-)a/api/v1/swagger/definitions/availability/biblio.json (+19 lines)
Line 0 Link Here
1
{
2
  "type": "object",
3
  "properties": {
4
    "biblionumber": {
5
      "type": "integer",
6
      "description": "Internal biblio identifier"
7
    },
8
    "availability": {
9
      "$ref": "../availability.json"
10
    },
11
    "item_availabilities": {
12
      "description": "Availability of each item in this biblio",
13
      "type": ["array", "null"],
14
      "items": {
15
        "$ref": "../availability/item.json"
16
      }
17
    }
18
  }
19
}
(-)a/api/v1/swagger/definitions/availability/item.json (+52 lines)
Line 0 Link Here
1
{
2
  "type": "object",
3
  "properties": {
4
    "availability": {
5
      "$ref": "../availability.json"
6
    },
7
    "barcode": {
8
      "type": ["string", "null"],
9
      "description": "item barcode"
10
    },
11
    "biblioitemnumber": {
12
      "type": "integer",
13
      "description": "internally assigned biblio item identifier"
14
    },
15
    "biblionumber": {
16
      "type": "integer",
17
      "description": "internally assigned biblio identifier"
18
    },
19
    "enumchron": {
20
      "type": ["string", "null"],
21
      "description": "serial enumeration/chronology for the item"
22
    },
23
    "holdQueueLength": {
24
      "type": ["integer", "null"],
25
      "description": "number of holdings placed on title/item"
26
    },
27
    "holdingbranch": {
28
      "type": ["string", "null"],
29
      "description": "library that is currently in possession item"
30
    },
31
    "homebranch": {
32
      "type": ["string", "null"],
33
      "description": "library that owns this item"
34
    },
35
    "itemcallnumber": {
36
      "type": ["string", "null"],
37
      "description": "call number for this item"
38
    },
39
    "itemnotes": {
40
      "type": ["string", "null"],
41
      "description": "public notes on this item"
42
    },
43
    "itemnumber": {
44
      "type": "integer",
45
      "description": "internally assigned item identifier"
46
    },
47
    "location": {
48
      "type": ["string", "null"],
49
      "description": "authorized value for the shelving location for this item"
50
    }
51
  }
52
}
(-)a/api/v1/swagger/definitions/availability/reason.json (+404 lines)
Line 0 Link Here
1
{
2
  "description": "An object that contains either none or multiple reasons defined in this object's specification.",
3
  "type": "object",
4
  "properties": {
5
    "Biblio::CheckedOut": {
6
      "description": "Patron has already checked out an item from this biblio. A confirmation may be required.",
7
      "type": "object",
8
      "properties": {
9
        "biblionumber": {
10
          "$ref": "../../x-primitives.json#/biblionumber"
11
        }
12
      }
13
    },
14
    "Biblio::NoAvailableItems": {
15
      "description": "This biblio has no available items.",
16
      "type": "object",
17
      "properties": {}
18
    },
19
    "Checkout::DueDateBeforeNow": {
20
      "description": "Given due date is in the past.",
21
      "type": "object",
22
      "properties": {
23
        "duedate": {
24
          "type": ["string", "null"],
25
          "format": "date-time"
26
        },
27
        "now": {
28
          "type": ["string", "null"],
29
          "format": "date-time"
30
        }
31
      }
32
    },
33
    "Checkout::Fee": {
34
      "description": "Checkout fee will apply.",
35
      "type": "object",
36
      "properties": {
37
        "amount": {
38
          "type": ["number", "null"],
39
          "description": "Amount of rental charge."
40
        }
41
      }
42
    },
43
    "Checkout::InvalidDueDate": {
44
      "description": "Given due date is invalid.",
45
      "type": "object",
46
      "properties": {
47
        "duedate": {
48
          "type": ["string", "null"]
49
        }
50
      }
51
    },
52
    "Checkout::MaximumCheckoutsReached": {
53
      "description": "Maximum number of checkouts have been reached.",
54
      "type": "object",
55
      "properties": {
56
        "max_checkouts_allowed": {
57
          "type": ["integer", "null"],
58
          "description": "Maximum number of checkouts allowed."
59
        },
60
        "current_checkout_count": {
61
          "type": ["integer", "null"],
62
          "description": "Current checkout count for patron."
63
        }
64
      }
65
    },
66
    "Checkout::MaximumOnsiteCheckoutsReached": {
67
      "description": "Maximum number of on-site checkouts have been reached.",
68
      "type": "object",
69
      "properties": {
70
        "max_onsite_checkouts": {
71
          "type": ["integer", "null"],
72
          "description": "Maximum number of onsite checkouts allowed."
73
        },
74
        "current_onsite_checkouts": {
75
          "type": ["integer", "null"],
76
          "description": "Current onsite checkout count for patron."
77
        }
78
      }
79
    },
80
    "Checkout::NoMoreRenewals": {
81
      "description": "No more renewals allowed.",
82
      "type": "object",
83
      "properties": {}
84
    },
85
    "Checkout::NoMoreRenewalForOnsiteCheckouts": {
86
      "description": "No more on-site renewals allowed.",
87
      "type": "object",
88
      "properties": {}
89
    },
90
    "Checkout::OnsiteCheckoutsDisabled": {
91
      "description": "On-site checkouts are disabled.",
92
      "type": "object",
93
      "properties": {}
94
    },
95
    "Checkout::Renew": {
96
      "description": "Checkout will be renewed.",
97
      "type": "object",
98
      "properties": {}
99
    },
100
    "Checkout::ZeroCheckoutsAllowed": {
101
      "description": "Allowed number of checkouts is zero.",
102
      "type": "object",
103
      "properties": {}
104
    },
105
    "Hold::ItemLevelHoldNotAllowed": {
106
      "description": "Item-level holds are not allowed.",
107
      "type": "object",
108
      "properties": {}
109
    },
110
    "Hold::MaximumHoldsReached": {
111
      "description": "Maximum number of holds have been reached.",
112
      "type": "object",
113
      "properties": {
114
        "max_holds_allowed": {
115
          "type": ["integer", "null"]
116
        },
117
        "current_hold_count": {
118
          "type": ["integer", "null"]
119
        }
120
      }
121
    },
122
    "Hold::MaximumHoldsForThisRecordReached": {
123
      "description": "Maximum number of holds for this record have been reached.",
124
      "type": "object",
125
      "properties": {
126
        "max_holds_allowed": {
127
          "type": ["integer", "null"]
128
        },
129
        "current_hold_count": {
130
          "type": ["integer", "null"]
131
        }
132
      }
133
    },
134
    "Hold::NotAllowedByLibrary": {
135
      "description": "Library does not allow holds to be placed.",
136
      "type": "object",
137
      "properties": {}
138
    },
139
    "Hold::NotAllowedFromOtherLibraries": {
140
      "description": "Holds are not allowed from other libraries.",
141
      "type": "object",
142
      "properties": {}
143
    },
144
    "Hold::NotAllowedInOPAC": {
145
      "description": "Patron cannot place a hold by themselves in OPAC.",
146
      "type": "object",
147
      "properties": {}
148
    },
149
    "Hold::OnShelfNotAllowed": {
150
      "description": "On-shelf holds are not allowed.",
151
      "type": "object",
152
      "properties": {}
153
    },
154
    "Hold::ZeroHoldsAllowed": {
155
      "description": "Allowed number of holds is zero.",
156
      "type": "object",
157
      "properties": {}
158
    },
159
    "Item::AlreadyHeldForThisPatron": {
160
      "description": "Item is held for this patron.",
161
      "type": "object",
162
      "properties": {}
163
    },
164
    "Item::CannotBeTransferred": {
165
      "description": "Item cannot be transferred.",
166
      "type": "object",
167
      "properties": {
168
        "from_library": {
169
          "$ref": "../../x-primitives.json#/branchcode"
170
        },
171
        "to_library": {
172
          "$ref": "../../x-primitives.json#/branchcode"
173
        }
174
      }
175
    },
176
    "Item::CheckedOut": {
177
      "description": "Item is checked out to a patron.",
178
      "type": "object",
179
      "properties": {
180
        "borrowernumber": {
181
          "type": ["integer", "null"]
182
        },
183
        "date_due": {
184
          "type": ["string", "null"],
185
          "format": "date-time"
186
        }
187
      }
188
    },
189
    "Item::Damaged": {
190
      "description": "Item is marked as damaged",
191
      "type": "object",
192
      "properties": {}
193
    },
194
    "Item::FromAnotherLibrary": {
195
      "description": "Libraries are independent and this item is from another library than current patron.",
196
      "type": "object",
197
      "properties": {
198
        "itemhomebranch": {
199
          "$ref": "../../x-primitives.json#/branchcode"
200
        }
201
      }
202
    },
203
    "Item::Held": {
204
      "description": "Someone has placed a hold on this item.",
205
      "type": "object",
206
      "properties": {
207
        "borrowernumber": {
208
          "$ref": "../../x-primitives.json#/borrowernumber"
209
        },
210
        "status": {
211
          "type": ["string", "null"]
212
        },
213
        "hold_queue_length": {
214
          "type": ["integer", "null"]
215
        }
216
      }
217
    },
218
    "Item::HighHolds": {
219
      "description": "Loan period shortened for high held item.",
220
      "type": "object",
221
      "properties": {
222
        "num_holds": {
223
          "type": ["integer", "null"]
224
        },
225
        "duration": {
226
          "type": ["string", "null"]
227
        },
228
        "returndate": {
229
          "type": ["string", "null"],
230
          "format": "date-time"
231
        }
232
      }
233
    },
234
    "Item::Lost": {
235
      "description": "Item is marked as lost.",
236
      "type": "object",
237
      "properties": {
238
        "code": {
239
          "description": "Status description (e.g. Missing)",
240
          "type": ["string", "null"]
241
        },
242
        "status": {
243
          "description": "Item's lost status number",
244
          "type": ["integer", "null"]
245
        }
246
      }
247
    },
248
    "Item::NotForLoan": {
249
      "description": "Item is not for loan.",
250
      "type": "object",
251
      "properties": {
252
        "status": {
253
          "description": "Item's notforloan status number",
254
          "type": ["integer", "null"]
255
        },
256
        "code": {
257
          "description": "Status description (e.g. Ordered)",
258
          "type": ["string", "null"]
259
        }
260
      }
261
    },
262
    "Item::Restricted": {
263
      "description": "Item is restricted.",
264
      "type": "object",
265
      "properties": {}
266
    },
267
    "Item::Transfer": {
268
      "description": "Item is being transferred.",
269
      "type": "object",
270
      "properties": {
271
        "from_library": {
272
          "$ref": "../../x-primitives.json#/branchcode"
273
        },
274
        "to_library": {
275
          "$ref": "../../x-primitives.json#/branchcode"
276
        },
277
        "datesent": {
278
          "description": "Start date of transfer",
279
          "type": ["string", "null"],
280
          "format": "date-time"
281
        }
282
      }
283
    },
284
    "Item::UnknownBarcode": {
285
      "description": "This item has either an unknown barcode or no barcode at all.",
286
      "type": "object",
287
      "properties": {
288
        "barcode": {
289
          "type": ["string", "null"]
290
        }
291
      }
292
    },
293
    "Item::Withdrawn": {
294
      "description": "Item is withdrawn.",
295
      "type": "object",
296
      "properties": {}
297
    },
298
    "ItemType::NotForLoan": {
299
      "description": "Item type is not for loan.",
300
      "type": "object",
301
      "properties": {
302
        "status": {
303
          "description": "Item's notforloan status number",
304
          "type": ["integer", "null"]
305
        },
306
        "code": {
307
          "description": "Status description (e.g. Ordered)",
308
          "type": ["string", "null"]
309
        },
310
        "itemtype": {
311
          "description": "Item type",
312
          "type": ["string", "null"]
313
        }
314
      }
315
    },
316
    "Patron::AgeRestricted": {
317
      "description": "An age restriction applies for this patron.",
318
      "type": "object",
319
      "properties": {
320
        "age_restriction": {
321
          "type": ["string", "null"],
322
          "description": "Age restriction, e.g. PEGI 16"
323
        }
324
      }
325
    },
326
    "Patron::CardExpired": {
327
      "description": "Patron's card has been expired.",
328
      "type": "object",
329
      "properties": {
330
        "expiration_date": {
331
          "type": ["string", "null"],
332
          "format": "date"
333
        }
334
      }
335
    },
336
    "Patron::CardLost": {
337
      "description": "Patron's card has been marked as lost.",
338
      "type": "object",
339
      "properties": {}
340
    },
341
    "Patron::Debarred": {
342
      "description": "Patron is debarred.",
343
      "type": "object",
344
      "properties": {
345
        "expiration_date": {
346
          "type": ["string", "null"],
347
          "format": "date"
348
        },
349
        "comment": {
350
          "type": ["string", "null"]
351
        }
352
      }
353
    },
354
    "Patron::DebarredOverdue": {
355
      "description": "Patron has overdues and is debarred.",
356
      "type": "object",
357
      "properties": {
358
        "number_of_overdues": {
359
          "type": ["integer", "null"]
360
        }
361
      }
362
    },
363
    "Patron::Debt": {
364
      "description": "Patron's debts exceed maximum allowed amount.",
365
      "type": "object",
366
      "properties": {
367
        "max_outstanding":{
368
          "type": ["number", "null"]
369
        },
370
        "current_outstanding": {
371
          "type": ["number", "null"]
372
        }
373
      }
374
    },
375
    "Patron::DebtGuarantees": {
376
      "description": "Patron's guarantees' debts exceed maximum allowed amount.",
377
      "type": "object",
378
      "properties": {
379
        "max_outstanding":{
380
          "type": ["number", "null"]
381
        },
382
        "current_outstanding": {
383
          "type": ["number", "null"]
384
        }
385
      }
386
    },
387
    "Patron::FromAnotherLibrary": {
388
      "description": "Libraries are independent and patron is from another library than current logged in user.",
389
      "type": "object",
390
      "properties": {
391
        "patron_branch": {
392
          "$ref": "../../x-primitives.json#/branchcode"
393
        },
394
        "current_branch": {
395
          "$ref": "../../x-primitives.json#/branchcode"
396
        }
397
      }
398
    },
399
    "Patron::GoneNoAddress": {
400
      "type": "object",
401
      "properties": {}
402
    }
403
  }
404
}
(-)a/api/v1/swagger/parameters.json (+9 lines)
Lines 1-10 Link Here
1
{
1
{
2
  "biblionumbersQueryParam": {
3
    "$ref": "parameters/biblio.json#/biblionumbersQueryParam"
4
  },
2
  "borrowernumberPathParam": {
5
  "borrowernumberPathParam": {
3
    "$ref": "parameters/patron.json#/borrowernumberPathParam"
6
    "$ref": "parameters/patron.json#/borrowernumberPathParam"
4
  },
7
  },
5
  "borrowernumberQueryParam": {
8
  "borrowernumberQueryParam": {
6
    "$ref": "parameters/patron.json#/borrowernumberQueryParam"
9
    "$ref": "parameters/patron.json#/borrowernumberQueryParam"
7
  },
10
  },
11
  "branchcodeQueryParam": {
12
    "$ref": "parameters/library.json#/branchcodeQueryParam"
13
  },
8
  "cityidPathParam": {
14
  "cityidPathParam": {
9
    "$ref": "parameters/city.json#/cityidPathParam"
15
    "$ref": "parameters/city.json#/cityidPathParam"
10
  },
16
  },
Lines 13-17 Link Here
13
  },
19
  },
14
  "itemnumberPathParam": {
20
  "itemnumberPathParam": {
15
    "$ref": "parameters/item.json#/itemnumberPathParam"
21
    "$ref": "parameters/item.json#/itemnumberPathParam"
22
  },
23
  "itemnumbersQueryParam": {
24
    "$ref": "parameters/item.json#/itemnumbersQueryParam"
16
  }
25
  }
17
}
26
}
(-)a/api/v1/swagger/parameters/biblio.json (+12 lines)
Line 0 Link Here
1
{
2
  "biblionumbersQueryParam": {
3
    "name": "biblionumber",
4
    "in": "query",
5
    "description": "Internal biblios identifier",
6
    "type": "array",
7
    "items": {
8
      "type": "integer"
9
    },
10
    "collectionFormat": "ssv"
11
  }
12
}
(-)a/api/v1/swagger/parameters/item.json (+10 lines)
Lines 5-9 Link Here
5
    "description": "Internal item identifier",
5
    "description": "Internal item identifier",
6
    "required": true,
6
    "required": true,
7
    "type": "integer"
7
    "type": "integer"
8
  },
9
  "itemnumbersQueryParam": {
10
    "name": "itemnumber",
11
    "in": "query",
12
    "description": "Internal items identifier",
13
    "type": "array",
14
    "items": {
15
      "type": "integer"
16
    },
17
    "collectionFormat": "ssv"
8
  }
18
  }
9
}
19
}
(-)a/api/v1/swagger/parameters/library.json (+8 lines)
Line 0 Link Here
1
{
2
  "branchcodeQueryParam": {
3
    "name": "branchcode",
4
    "in": "query",
5
    "description": "Branch identifier code",
6
    "type": "string"
7
  }
8
}
(-)a/api/v1/swagger/paths.json (+15 lines)
Lines 1-4 Link Here
1
{
1
{
2
  "/availability/biblio/hold": {
3
    "$ref": "paths/availability.json#/~1availability~1biblio~1hold"
4
  },
5
  "/availability/biblio/search": {
6
    "$ref": "paths/availability.json#/~1availability~1biblio~1search"
7
  },
8
  "/availability/item/checkout": {
9
    "$ref": "paths/availability.json#/~1availability~1item~1checkout"
10
  },
11
  "/availability/item/hold": {
12
    "$ref": "paths/availability.json#/~1availability~1item~1hold"
13
  },
14
  "/availability/item/search": {
15
    "$ref": "paths/availability.json#/~1availability~1item~1search"
16
  },
2
  "/cities": {
17
  "/cities": {
3
    "$ref": "paths/cities.json#/~1cities"
18
    "$ref": "paths/cities.json#/~1cities"
4
  },
19
  },
(-)a/api/v1/swagger/paths/availability.json (+203 lines)
Line 0 Link Here
1
{
2
  "/availability/biblio/hold": {
3
    "get": {
4
      "operationId": "holdBiblioAvailability",
5
      "tags": ["items", "availability"],
6
      "parameters": [
7
        { "$ref": "../parameters.json#/biblionumbersQueryParam" },
8
        { "$ref": "../parameters.json#/borrowernumberQueryParam" },
9
        { "$ref": "../parameters.json#/branchcodeQueryParam"}
10
      ],
11
      "consumes": ["application/json"],
12
      "produces": ["application/json"],
13
      "responses": {
14
        "200": {
15
          "description": "Hold availability information for items of biblio.",
16
          "schema": {
17
            "type": "array",
18
            "items": { "$ref": "../definitions.json#/availability~1biblio" }
19
          }
20
        },
21
        "400": {
22
          "description": "Missing or invalid parameters",
23
          "schema": {
24
            "$ref": "../definitions.json#/error"
25
          }
26
        },
27
        "401": {
28
          "description": "Authentication required",
29
          "schema": {
30
            "$ref": "../definitions.json#/error"
31
          }
32
        },
33
        "403": {
34
          "description": "Forbidden",
35
          "schema": {
36
            "$ref": "../definitions.json#/error"
37
          }
38
        },
39
        "500": {
40
          "description": "Internal server error",
41
          "schema": {
42
            "$ref": "../definitions.json#/error"
43
          }
44
        }
45
      }
46
    }
47
  },
48
  "/availability/biblio/search": {
49
    "get": {
50
      "operationId": "searchBiblioAvailability",
51
      "tags": ["items", "availability"],
52
      "parameters": [
53
        { "$ref": "../parameters.json#/biblionumbersQueryParam" }
54
      ],
55
      "consumes": ["application/json"],
56
      "produces": ["application/json"],
57
      "responses": {
58
        "200": {
59
          "description": "Availability information in search context for items of biblio.",
60
          "schema": {
61
            "type": "array",
62
            "items": { "$ref": "../definitions.json#/availability~1biblio" }
63
          }
64
        },
65
        "400": {
66
          "description": "Missing or invalid parameters",
67
          "schema": {
68
            "$ref": "../definitions.json#/error"
69
          }
70
        },
71
        "500": {
72
          "description": "Internal server error",
73
          "schema": {
74
            "$ref": "../definitions.json#/error"
75
          }
76
        }
77
      }
78
    }
79
  },
80
  "/availability/item/checkout": {
81
    "get": {
82
      "operationId": "checkoutItemAvailability",
83
      "tags": ["items", "availability"],
84
      "parameters": [
85
        { "$ref": "../parameters.json#/itemnumbersQueryParam" },
86
        { "$ref": "../parameters.json#/borrowernumberQueryParam" }
87
      ],
88
      "consumes": ["application/json"],
89
      "produces": ["application/json"],
90
      "responses": {
91
        "200": {
92
          "description": "Checkout availability information for specific item(s).",
93
          "schema": {
94
            "type": "array",
95
            "items": { "$ref": "../definitions.json#/availability~1item" }
96
          }
97
        },
98
        "400": {
99
          "description": "Missing or invalid parameters",
100
          "schema": {
101
            "$ref": "../definitions.json#/error"
102
          }
103
        },
104
        "401": {
105
          "description": "Authentication required",
106
          "schema": {
107
            "$ref": "../definitions.json#/error"
108
          }
109
        },
110
        "403": {
111
          "description": "Forbidden",
112
          "schema": {
113
            "$ref": "../definitions.json#/error"
114
          }
115
        },
116
        "500": {
117
          "description": "Internal server error",
118
          "schema": {
119
            "$ref": "../definitions.json#/error"
120
          }
121
        }
122
      }
123
    }
124
  },
125
  "/availability/item/hold": {
126
    "get": {
127
      "operationId": "holdItemAvailability",
128
      "tags": ["items", "availability"],
129
      "parameters": [
130
        { "$ref": "../parameters.json#/itemnumbersQueryParam" },
131
        { "$ref": "../parameters.json#/borrowernumberQueryParam" },
132
        { "$ref": "../parameters.json#/branchcodeQueryParam"}
133
      ],
134
      "consumes": ["application/json"],
135
      "produces": ["application/json"],
136
      "responses": {
137
        "200": {
138
          "description": "Hold availability information for specific item(s).",
139
          "schema": {
140
            "type": "array",
141
            "items": { "$ref": "../definitions.json#/availability~1item" }
142
          }
143
        },
144
        "400": {
145
          "description": "Missing or invalid parameters",
146
          "schema": {
147
            "$ref": "../definitions.json#/error"
148
          }
149
        },
150
        "401": {
151
          "description": "Authentication required",
152
          "schema": {
153
            "$ref": "../definitions.json#/error"
154
          }
155
        },
156
        "403": {
157
          "description": "Forbidden",
158
          "schema": {
159
            "$ref": "../definitions.json#/error"
160
          }
161
        },
162
        "500": {
163
          "description": "Internal server error",
164
          "schema": {
165
            "$ref": "../definitions.json#/error"
166
          }
167
        }
168
      }
169
    }
170
  },
171
  "/availability/item/search": {
172
    "get": {
173
      "operationId": "searchItemAvailability",
174
      "tags": ["items", "availability"],
175
      "parameters": [
176
        { "$ref": "../parameters.json#/itemnumbersQueryParam" }
177
      ],
178
      "consumes": ["application/json"],
179
      "produces": ["application/json"],
180
      "responses": {
181
        "200": {
182
          "description": "Availability information in search context for specific item(s).",
183
          "schema": {
184
            "type": "array",
185
            "items": { "$ref": "../definitions.json#/availability~1item" }
186
          }
187
        },
188
        "400": {
189
          "description": "Missing or invalid parameters",
190
          "schema": {
191
            "$ref": "../definitions.json#/error"
192
          }
193
        },
194
        "500": {
195
          "description": "Internal server error",
196
          "schema": {
197
            "$ref": "../definitions.json#/error"
198
          }
199
        }
200
      }
201
    }
202
  }
203
}
(-)a/api/v1/swagger/x-primitives.json (-1 / +4 lines)
Lines 7-12 Link Here
7
    "type": "integer",
7
    "type": "integer",
8
    "description": "internally assigned user identifier"
8
    "description": "internally assigned user identifier"
9
  },
9
  },
10
  "branchcode": {
11
    "type": "string",
12
    "description": "a unique key assigned to each branch"
13
  },
10
  "cardnumber": {
14
  "cardnumber": {
11
    "type": ["string", "null"],
15
    "type": ["string", "null"],
12
    "description": "library assigned user identifier"
16
    "description": "library assigned user identifier"
13
- 

Return to bug 16826