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

(-)a/api/v1/swagger/definitions/preservation_train.yaml (-1 / +1 lines)
Lines 3-9 type: object Link Here
3
properties:
3
properties:
4
  train_id:
4
  train_id:
5
    type: integer
5
    type: integer
6
    description: internally assigned agreement identifier
6
    description: internally assigned train identifier
7
    readOnly: true
7
    readOnly: true
8
  name:
8
  name:
9
    description: name of the train
9
    description: name of the train
(-)a/api/v1/swagger/definitions/preservation_train_item.yaml (+35 lines)
Line 0 Link Here
1
---
2
type: object
3
properties:
4
  train_item_id:
5
    type: integer
6
    description: internally assigned train item identifier
7
    readOnly: true
8
  train_id:
9
    type: integer
10
    description: internally train identifier
11
  item_id:
12
    type: integer
13
    description: internally item identifier
14
  user_train_item_id:
15
    type: integer
16
    description: internally user train item identifier
17
  processing_id:
18
    description: internally processing identifier
19
    type: integer
20
  added_on:
21
    description: add date
22
    type:
23
      - string
24
      - "null"
25
  attributes:
26
    description: attribute list
27
    type:
28
      - array
29
      - "null"
30
31
additionalProperties: false
32
required:
33
  - train_id
34
  - processing_id
35
(-)a/api/v1/swagger/paths/preservation_trains.yaml (-1 / +6 lines)
Lines 572-577 Link Here
572
            - catalogue_item
572
            - catalogue_item
573
            - catalogue_item.biblio
573
            - catalogue_item.biblio
574
        collectionFormat: csv
574
        collectionFormat: csv
575
        additionalProperties: false
575
    responses:
576
    responses:
576
      200:
577
      200:
577
        description: An item in train
578
        description: An item in train
Lines 624-634 Link Here
624
        required: true
625
        required: true
625
        schema:
626
        schema:
626
          type: object
627
          type: object
628
          properties:
629
            train_id:
630
              description: Train id
631
              type: integer
627
    responses:
632
    responses:
628
      201:
633
      201:
629
        description: A successfully copied item
634
        description: A successfully copied item
630
        schema:
635
        schema:
631
          type: object
636
          $ref: "../swagger.yaml#/definitions/preservation_train_item"
632
      400:
637
      400:
633
        description: Bad parameter
638
        description: Bad parameter
634
        schema:
639
        schema:
(-)a/api/v1/swagger/swagger.yaml (-1 / +2 lines)
Lines 102-107 definitions: Link Here
102
    $ref: ./definitions/preservation_config.yaml
102
    $ref: ./definitions/preservation_config.yaml
103
  preservation_train:
103
  preservation_train:
104
    $ref: ./definitions/preservation_train.yaml
104
    $ref: ./definitions/preservation_train.yaml
105
  preservation_train_item:
106
    $ref: ./definitions/preservation_train_item.yaml
105
  preservation_processing:
107
  preservation_processing:
106
    $ref: ./definitions/preservation_processing.yaml
108
    $ref: ./definitions/preservation_processing.yaml
107
  quote:
109
  quote:
108
- 

Return to bug 30708