-
Notifications
You must be signed in to change notification settings - Fork 3
/
batch-voucher-export-configuration.raml
90 lines (84 loc) · 3.82 KB
/
batch-voucher-export-configuration.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#%RAML 1.0
title: Batch voucher export configurations
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://github.com/folio-org/mod-invoice-storage
documentation:
- title: Batch voucher export configurations CRUD API
content: This documents the API calls that can be made to manage batch voucher export configurations; This API is intended for internal use only
types:
exportConfig: !include acq-models/mod-invoice-storage/schemas/export_configuration.json
exportConfigCollection: !include acq-models/mod-invoice-storage/schemas/export_configuration_collection.json
credentials: !include acq-models/mod-invoice-storage/schemas/credentials.json
errors: !include raml-util/schemas/errors.schema
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}$
traits:
validate: !include raml-util/traits/validation.raml
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/batch-voucher-storage/export-configurations:
type:
collection:
schemaCollection: exportConfigCollection
schemaItem: exportConfig
exampleCollection: !include acq-models/mod-invoice-storage/examples/export_configuration_collection.sample
exampleItem: !include acq-models/mod-invoice-storage/examples/export_configuration.sample
get:
description: Get list of batch voucher export configurations
is: [
pageable,
searchable: {description: "with valid searchable fields: for example format", example: "format==\"Application/xml\""}
]
/{id}:
uriParameters:
id:
description: The UUID of a batch voucher export configuration
type: UUID
type:
collection-item:
schema: exportConfig
exampleItem: !include acq-models/mod-invoice-storage/examples/export_configuration.sample
/credentials:
displayName: Batch Voucher Export Configuration Credentials
description: Manage Batch Voucher Export Configuration Credentials
type:
collection-item:
schema: credentials
exampleItem: !include acq-models/mod-invoice-storage/examples/credentials.sample
post:
description: Create credentials for a batch voucher configuration
body:
application/json:
type: credentials
example:
strict: false
value: !include acq-models/mod-invoice-storage/examples/credentials.sample
responses:
201:
description: "Returns the newly created credentials, with server-controlled fields like 'id' populated"
headers:
Location:
description: URI to the created credentials
body:
application/json:
example: !include acq-models/mod-invoice-storage/examples/credentials.sample
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 add credentials -- malformed JSON at 13:3"
401:
description: "Not authorized to perform requested action"
body:
text/plain:
example: "unable to create credentials -- unauthorized"
500:
description: "Internal server error, e.g. due to misconfiguration"
body:
text/plain:
example: "Internal server error, contact administrator"