-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpo-line-batch.raml
45 lines (40 loc) · 1.63 KB
/
po-line-batch.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#%RAML 1.0
title: "mod-orders"
baseUri: http://github.com/folio-org/mod-orders-storage
version: v9.3
documentation:
- title: PO Line batch
content: <b>This module implements the PO lines batch processing interface. This API is intended for internal use only.
types:
po-line-collection: !include acq-models/mod-orders-storage/schemas/po_line_collection.json
UUID:
type: string
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
traits:
/orders-storage/po-lines-batch:
displayName: Process list of PO lines in a batch
description: Process list of PO lines in a batch APIs
put:
description: "Update the list of PO lines in a batch"
body:
application/json:
type: po-line-collection
example:
strict: false
value: !include acq-models/mod-orders-storage/examples/po_line_collection.sample
responses:
204:
description: "Collection successfully updated"
400:
description: "Bad request, e.g. malformed request body or query parameter. Details of the error (e.g. name of the parameter or line/character number with malformed data) provided in the response."
body:
text/plain:
example: "unable to update <<resourcePathName|!singularize>> -- malformed JSON at 13:4"
500:
description: "Internal server error, e.g. due to misconfiguration"
body:
text/plain:
example: "internal server error, contact administrator"