Lines 376-381
Link Here
|
376 |
x-koha-authorization: |
376 |
x-koha-authorization: |
377 |
permissions: |
377 |
permissions: |
378 |
preservation: 1 |
378 |
preservation: 1 |
|
|
379 |
"/preservation/trains/{train_id}/items/batch": |
380 |
post: |
381 |
x-mojo-to: Preservation::Trains#add_items |
382 |
operationId: addItemsToTrain |
383 |
tags: |
384 |
- preservation_train |
385 |
summary: Add items to train |
386 |
consumes: |
387 |
- application/json |
388 |
produces: |
389 |
- application/json |
390 |
parameters: |
391 |
- $ref: "../swagger.yaml#/parameters/preservation_train_id_pp" |
392 |
- description: A list of items |
393 |
in: body |
394 |
name: body |
395 |
required: true |
396 |
schema: |
397 |
type: array |
398 |
items: |
399 |
type: object |
400 |
responses: |
401 |
201: |
402 |
description: A successfully added list of items |
403 |
schema: |
404 |
type: array |
405 |
items: |
406 |
type: object |
407 |
400: |
408 |
description: Bad parameter |
409 |
schema: |
410 |
$ref: "../swagger.yaml#/definitions/error" |
411 |
401: |
412 |
description: Authentication required |
413 |
schema: |
414 |
$ref: "../swagger.yaml#/definitions/error" |
415 |
403: |
416 |
description: Access forbidden |
417 |
schema: |
418 |
$ref: "../swagger.yaml#/definitions/error" |
419 |
404: |
420 |
description: Ressource not found |
421 |
schema: |
422 |
$ref: "../swagger.yaml#/definitions/error" |
423 |
409: |
424 |
description: Conflict in creating resource |
425 |
schema: |
426 |
$ref: "../swagger.yaml#/definitions/error" |
427 |
413: |
428 |
description: Payload too large |
429 |
schema: |
430 |
$ref: "../swagger.yaml#/definitions/error" |
431 |
500: |
432 |
description: |- |
433 |
Internal server error. Possible `error_code` attribute values: |
434 |
* `internal_server_error` |
435 |
schema: |
436 |
$ref: "../swagger.yaml#/definitions/error" |
437 |
503: |
438 |
description: Under maintenance |
439 |
schema: |
440 |
$ref: "../swagger.yaml#/definitions/error" |
441 |
x-koha-authorization: |
442 |
permissions: |
443 |
preservation: 1 |
444 |
description: |- |
445 |
Internal server error. Possible `error_code` attribute values: |
446 |
* `internal_server_error` |
447 |
schema: |
448 |
$ref: "../swagger.yaml#/definitions/error" |
449 |
503: |
450 |
description: Under maintenance |
451 |
schema: |
452 |
$ref: "../swagger.yaml#/definitions/error" |
453 |
x-koha-authorization: |
454 |
permissions: |
455 |
preservation: 1 |
456 |
|
379 |
"/preservation/trains/{train_id}/items/{train_item_id}": |
457 |
"/preservation/trains/{train_id}/items/{train_item_id}": |
380 |
put: |
458 |
put: |
381 |
x-mojo-to: Preservation::Trains#update_item |
459 |
x-mojo-to: Preservation::Trains#update_item |