|
Lines 8-14
Link Here
|
| 8 |
{ |
8 |
{ |
| 9 |
"name": "hold_id", |
9 |
"name": "hold_id", |
| 10 |
"in": "query", |
10 |
"in": "query", |
| 11 |
"description": "Internal reserve identifier", |
11 |
"description": "Internal hold identifier", |
| 12 |
"type": "integer" |
12 |
"type": "integer" |
| 13 |
}, |
13 |
}, |
| 14 |
{ |
14 |
{ |
|
Lines 120-125
Link Here
|
| 120 |
}, |
120 |
}, |
| 121 |
{ |
121 |
{ |
| 122 |
"$ref": "../parameters.json#/per_page" |
122 |
"$ref": "../parameters.json#/per_page" |
|
|
123 |
}, |
| 124 |
{ |
| 125 |
"$ref": "../parameters.json#/q_param" |
| 126 |
}, |
| 127 |
{ |
| 128 |
"$ref": "../parameters.json#/q_body" |
| 129 |
}, |
| 130 |
{ |
| 131 |
"$ref": "../parameters.json#/q_header" |
| 123 |
} |
132 |
} |
| 124 |
], |
133 |
], |
| 125 |
"produces": ["application/json"], |
134 |
"produces": ["application/json"], |
|
Lines 188-193
Link Here
|
| 188 |
"description": "Internal biblio identifier", |
197 |
"description": "Internal biblio identifier", |
| 189 |
"type": [ "integer", "null" ] |
198 |
"type": [ "integer", "null" ] |
| 190 |
}, |
199 |
}, |
|
|
200 |
"hold_date": { |
| 201 |
"description": "The date the hold was placed", |
| 202 |
"type": [ "string", "null" ], |
| 203 |
"format": "date" |
| 204 |
}, |
| 191 |
"item_id": { |
205 |
"item_id": { |
| 192 |
"description": "Internal item identifier", |
206 |
"description": "Internal item identifier", |
| 193 |
"type": [ "integer", "null" ] |
207 |
"type": [ "integer", "null" ] |
|
Lines 214-220
Link Here
|
| 214 |
"type": [ "boolean", "null" ] |
228 |
"type": [ "boolean", "null" ] |
| 215 |
} |
229 |
} |
| 216 |
}, |
230 |
}, |
| 217 |
"required": [ "patron_id", "pickup_library_id" ] |
231 |
"required": [ "patron_id", "pickup_library_id" ], |
|
|
232 |
"additionalProperties": false |
| 218 |
} |
233 |
} |
| 219 |
}, |
234 |
}, |
| 220 |
{ |
235 |
{ |
|
Lines 279-285
Link Here
|
| 279 |
} |
294 |
} |
| 280 |
}, |
295 |
}, |
| 281 |
"/holds/{hold_id}": { |
296 |
"/holds/{hold_id}": { |
| 282 |
"put": { |
297 |
"patch": { |
| 283 |
"x-mojo-to": "Holds#edit", |
298 |
"x-mojo-to": "Holds#edit", |
| 284 |
"operationId": "editHold", |
299 |
"operationId": "editHold", |
| 285 |
"tags": ["holds"], |
300 |
"tags": ["holds"], |
|
Lines 298-313
Link Here
|
| 298 |
"type": "integer", |
313 |
"type": "integer", |
| 299 |
"minimum": 1 |
314 |
"minimum": 1 |
| 300 |
}, |
315 |
}, |
| 301 |
"branchcode": { |
316 |
"pickup_library_id": { |
| 302 |
"description": "Pickup location", |
317 |
"description": "Internal library identifier for the pickup library", |
| 303 |
"type": "string" |
318 |
"type": "string" |
| 304 |
}, |
319 |
}, |
| 305 |
"suspend_until": { |
320 |
"suspended_until": { |
| 306 |
"description": "Suspend until", |
321 |
"description": "Date until which the hold has been suspended", |
| 307 |
"type": "string", |
322 |
"type": "string", |
| 308 |
"format": "date" |
323 |
"format": "date-time" |
| 309 |
} |
324 |
} |
| 310 |
} |
325 |
}, |
|
|
326 |
"additionalProperties": false |
| 311 |
} |
327 |
} |
| 312 |
} |
328 |
} |
| 313 |
], |
329 |
], |
|
Lines 510-516
Link Here
|
| 510 |
"type": "string", |
526 |
"type": "string", |
| 511 |
"format": "date" |
527 |
"format": "date" |
| 512 |
} |
528 |
} |
| 513 |
} |
529 |
}, |
|
|
530 |
"additionalProperties": false |
| 514 |
} |
531 |
} |
| 515 |
} |
532 |
} |
| 516 |
], |
533 |
], |
|
Lines 736-742
Link Here
|
| 736 |
"type": "string", |
753 |
"type": "string", |
| 737 |
"description": "Internal identifier for the pickup library" |
754 |
"description": "Internal identifier for the pickup library" |
| 738 |
} |
755 |
} |
| 739 |
} |
756 |
}, |
|
|
757 |
"additionalProperties": false |
| 740 |
} |
758 |
} |
| 741 |
} |
759 |
} |
| 742 |
], |
760 |
], |
|
Lines 753-759
Link Here
|
| 753 |
"type": "string", |
771 |
"type": "string", |
| 754 |
"description": "Internal identifier for the pickup library" |
772 |
"description": "Internal identifier for the pickup library" |
| 755 |
} |
773 |
} |
| 756 |
} |
774 |
}, |
|
|
775 |
"additionalProperties": false |
| 757 |
} |
776 |
} |
| 758 |
}, |
777 |
}, |
| 759 |
"400": { |
778 |
"400": { |
| 760 |
- |
|
|