Koha/api/v1/swagger/definitions/preservation_train.yaml
Jonathan Druart a7237dde72
Bug 30708: Fix API specs
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-20 10:00:58 -03:00

55 lines
1 KiB
YAML

---
type: object
properties:
train_id:
type: integer
description: internally assigned train identifier
readOnly: true
name:
description: name of the train
type: string
description:
description: description of the train
type:
- string
- "null"
default_processing_id:
description: foreign key to preservation_processings
type:
- integer
- "null"
not_for_loan:
description: NOT_LOAN authorised value to apply to item added to this train
type:
- string
- "null"
created_on:
description: creation date
type:
- string
- "null"
closed_on:
description: closing date
type:
- string
- "null"
sent_on:
description: sending date
type:
- string
- "null"
received_on:
description: receiving date
type:
- string
- "null"
default_processing:
description: the default processing
type:
- object
- "null"
additionalProperties: false
required:
- train_id
- name