-
Notifications
You must be signed in to change notification settings - Fork 4
/
aggregatorsettings.raml
79 lines (72 loc) · 2.43 KB
/
aggregatorsettings.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
#%RAML 1.0
title: Aggregator Settings
version: v1.2
baseUri: http://localhost/mod-erm-usage
documentation:
- title: mod-erm-usage API
content: This documents the API calls that can be made to query and manage aggregator settings
types:
aggregatorSetting: !include schemas/aggregatorsetting.json
aggregatorSettings: !include ./schemas/aggregatorsettings.json
errors: !include ./raml-util/schemas/errors.schema
traits:
orderable: !include ./raml-util/traits/orderable.raml
pageable: !include ./raml-util/traits/pageable.raml
searchable: !include ./raml-util/traits/searchable.raml
language: !include ./raml-util/traits/language.raml
validate: !include ./raml-util/traits/validation.raml
resourceTypes:
collection: !include ./raml-util/rtypes/collection.raml
collection-item: !include ./raml-util/rtypes/item-collection.raml
/aggregator-settings:
displayName: Aggregator Settings
type:
collection:
exampleCollection: !include ./examples/aggregatorsettings_collection.sample
exampleItem: !include ./examples/aggregatorsettings.sample
schemaCollection: aggregatorSettings
schemaItem: aggregatorSetting
get:
is: [
searchable: {description: "", example: "(label=\"Server*\") and aggregatorConfig.reportRelease=\"4\""},
orderable: {fieldsList: "label"},
pageable
]
description: Get all aggregator settings
post:
is: [validate]
description: Post new aggregator settings
/{id}:
type:
collection-item:
exampleItem: !include ./examples/aggregatorsettings.sample
schema: aggregatorSetting
get:
description: Get one aggregator setting identified by id
delete:
description: Delete aggregator setting identified by id
put:
description: Put aggregator setting identified by id
/exportcredentials:
get:
description: Get SushiCredentials associated with this aggregator
queryParameters:
format:
type: string
required: false
default: "csv"
description: Specify export format (default is CSV)
responses:
200:
description: Ok
body:
text/csv:
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet:
400:
description: Bad Request
body:
text/plain:
500:
description: Error
body:
text/plain: