Bugzilla – Attachment 157508 Details for
Bug 30708
Creation of a new 'Preservation' module
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30708: Fix API specs
Bug-30708-Fix-API-specs.patch (text/plain), 3.48 KB, created by
Jonathan Druart
on 2023-10-20 12:30:01 UTC
(
hide
)
Description:
Bug 30708: Fix API specs
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-10-20 12:30:01 UTC
Size:
3.48 KB
patch
obsolete
>From 66268c724534cf0bfb8a908da46f7f4f863fb59a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 20 Oct 2023 14:15:33 +0200 >Subject: [PATCH] Bug 30708: Fix API specs > >--- > .../definitions/preservation_train.yaml | 2 +- > .../definitions/preservation_train_item.yaml | 35 +++++++++++++++++++ > api/v1/swagger/paths/preservation_trains.yaml | 7 +++- > api/v1/swagger/swagger.yaml | 2 ++ > 4 files changed, 44 insertions(+), 2 deletions(-) > create mode 100644 api/v1/swagger/definitions/preservation_train_item.yaml > >diff --git a/api/v1/swagger/definitions/preservation_train.yaml b/api/v1/swagger/definitions/preservation_train.yaml >index 9502a710a3e..2b249a7e4c7 100644 >--- a/api/v1/swagger/definitions/preservation_train.yaml >+++ b/api/v1/swagger/definitions/preservation_train.yaml >@@ -3,7 +3,7 @@ type: object > properties: > train_id: > type: integer >- description: internally assigned agreement identifier >+ description: internally assigned train identifier > readOnly: true > name: > description: name of the train >diff --git a/api/v1/swagger/definitions/preservation_train_item.yaml b/api/v1/swagger/definitions/preservation_train_item.yaml >new file mode 100644 >index 00000000000..0afdc6fdf21 >--- /dev/null >+++ b/api/v1/swagger/definitions/preservation_train_item.yaml >@@ -0,0 +1,35 @@ >+--- >+type: object >+properties: >+ train_item_id: >+ type: integer >+ description: internally assigned train item identifier >+ readOnly: true >+ train_id: >+ type: integer >+ description: internally train identifier >+ item_id: >+ type: integer >+ description: internally item identifier >+ user_train_item_id: >+ type: integer >+ description: internally user train item identifier >+ processing_id: >+ description: internally processing identifier >+ type: integer >+ added_on: >+ description: add date >+ type: >+ - string >+ - "null" >+ attributes: >+ description: attribute list >+ type: >+ - array >+ - "null" >+ >+additionalProperties: false >+required: >+ - train_id >+ - processing_id >+ >diff --git a/api/v1/swagger/paths/preservation_trains.yaml b/api/v1/swagger/paths/preservation_trains.yaml >index 91a2d8b9345..f4e170a56e9 100644 >--- a/api/v1/swagger/paths/preservation_trains.yaml >+++ b/api/v1/swagger/paths/preservation_trains.yaml >@@ -572,6 +572,7 @@ > - catalogue_item > - catalogue_item.biblio > collectionFormat: csv >+ additionalProperties: false > responses: > 200: > description: An item in train >@@ -624,11 +625,15 @@ > required: true > schema: > type: object >+ properties: >+ train_id: >+ description: Train id >+ type: integer > responses: > 201: > description: A successfully copied item > schema: >- type: object >+ $ref: "../swagger.yaml#/definitions/preservation_train_item" > 400: > description: Bad parameter > schema: >diff --git a/api/v1/swagger/swagger.yaml b/api/v1/swagger/swagger.yaml >index 4c9e7bcb6e9..351f796c56e 100644 >--- a/api/v1/swagger/swagger.yaml >+++ b/api/v1/swagger/swagger.yaml >@@ -102,6 +102,8 @@ definitions: > $ref: ./definitions/preservation_config.yaml > preservation_train: > $ref: ./definitions/preservation_train.yaml >+ preservation_train_item: >+ $ref: ./definitions/preservation_train_item.yaml > preservation_processing: > $ref: ./definitions/preservation_processing.yaml > quote: >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30708
:
134715
|
134716
|
134732
|
134733
|
134734
|
134736
|
134737
|
134738
|
134782
|
134783
|
134784
|
134785
|
152939
|
152940
|
152941
|
152942
|
152943
|
152944
|
152945
|
152946
|
152947
|
152948
|
152949
|
152950
|
152951
|
152952
|
152953
|
152954
|
152955
|
152956
|
152957
|
152958
|
152959
|
152960
|
152961
|
152962
|
152963
|
152964
|
152965
|
152966
|
152967
|
152968
|
152969
|
152970
|
153102
|
153576
|
154167
|
154168
|
154169
|
154170
|
154171
|
154172
|
154173
|
154174
|
154175
|
154176
|
154177
|
154178
|
154179
|
154180
|
154181
|
154182
|
154183
|
154184
|
154185
|
154186
|
154187
|
154188
|
154189
|
154190
|
154191
|
154192
|
154193
|
154194
|
154195
|
154196
|
154197
|
154198
|
154199
|
154200
|
154201
|
154202
|
154203
|
156592
|
156596
|
156597
|
156636
|
156637
|
156638
|
156639
|
156640
|
156641
|
156642
|
156643
|
156644
|
156645
|
156646
|
156647
|
156648
|
156649
|
156650
|
156651
|
156652
|
156653
|
156654
|
156655
|
156656
|
156657
|
156658
|
156659
|
156660
|
156661
|
156662
|
156663
|
156664
|
156665
|
156666
|
156667
|
156668
|
156669
|
156670
|
156671
|
156672
|
156673
|
156674
|
156675
|
157502
|
157503
|
157506
| 157508 |
157512
|
157514
|
157557