blob: e67fb162d036edec82add86d3f07f4c4e57e2262 [file] [log] [blame]
xg353y054f1d12018-07-23 16:02:28 +02001<rests xmlns="http://camel.apache.org/schema/spring">
sebdet86bf8ee2018-09-05 18:07:57 +02002 <rest>
3 <get uri="/clds/cldsDetails"
4 outType="org.onap.clamp.clds.model.CldsMonitoringDetails"
5 produces="application/json">
6 <to
7 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCLDSDetails()" />
8 </get>
9 <get uri="/clds/cldsInfo"
10 outType="org.onap.clamp.clds.model.CldsInfo"
11 produces="application/json">
12 <to
13 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsInfo()" />
14 </get>
15 <get uri="/healthcheck" produces="application/json">
16 <to
17 uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" />
18 </get>
19 <get uri="/clds/model/bpmn/{modelName}" produces="text/xml">
20 <to
21 uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" />
22 </get>
23 <get uri="/clds/model/image/{modelName}" produces="text/xml">
24 <to
25 uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" />
26 </get>
27 <get uri="/clds/model/{modelName}"
28 outType="org.onap.clamp.clds.model.CldsModel"
29 produces="application/json">
30 <to
31 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModel(${header.modelName})" />
32 </get>
33 <put uri="/clds/model/{modelName}"
34 type="org.onap.clamp.clds.model.CldsModel"
35 consumes="application/json"
36 outType="org.onap.clamp.clds.model.CldsModel"
37 produces="application/json">
38 <to
39 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModel(${header.modelName},${body})" />
40 </put>
41 <get uri="/clds/model-names"
42 outType="org.onap.clamp.clds.model.ValueItem"
43 produces="application/json">
44 <to
45 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModelNames()" />
46 </get>
47 <put uri="/clds/action/{action}/{modelName}?test={test}"
48 type="org.onap.clamp.clds.model.CldsModel"
49 consumes="application/json" produces="application/json">
50 <to
51 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModelAndProcessAction(${header.action},${header.modelName},${header.test},${body})" />
52 </put>
53 <post uri="/clds/dcae/event?test={test}"
54 type="org.onap.clamp.clds.model.DcaeEvent"
55 consumes="application/json" produces="application/json">
56 <to
57 uri="bean:org.onap.clamp.clds.service.CldsService?method=postDcaeEvent(${header.test},${body})" />
58 </post>
59 <get uri="/clds/sdc/services" produces="application/json">
60 <to
61 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcServices()" />
62 </get>
63 <get uri="/clds/properties" produces="application/json">
64 <to
65 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
66 </get>
67 <get
68 uri="/clds/properties/{serviceInvariantUUID}?refresh={refresh}"
69 produces="application/json">
70 <to
71 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcPropertiesByServiceUUIDForRefresh(${header.serviceInvariantUUID},${header.refresh})" />
72 </get>
73 <put uri="/clds/deploy/{modelName}"
74 type="org.onap.clamp.clds.model.CldsModel"
75 consumes="application/json" produces="application/json">
76 <to
77 uri="bean:org.onap.clamp.clds.service.CldsService?method=deployModel(${header.modelName},${body})" />
78 </put>
79 <put uri="/clds/undeploy/{modelName}"
80 type="org.onap.clamp.clds.model.CldsModel"
81 consumes="application/json" produces="application/json">
82 <to
83 uri="bean:org.onap.clamp.clds.service.CldsService?method=unDeployModel(${header.modelName},${body})" />
84 </put>
85
86
87
88
89 <get uri="/cldsTempate/template/bpmn/{templateName}"
90 produces="text/xml">
91 <to
92 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
93 </get>
94 <get uri="/cldsTempate/template/image/{templateName}"
95 produces="text/xml">
96 <to
97 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
98 </get>
99 <get uri="/cldsTempate/template/{templateName}"
100 outType="org.onap.clamp.clds.model.CldsTemplate"
101 produces="application/json">
102 <to
103 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplate(${header.templateName})" />
104 </get>
105 <put uri="/cldsTempate/template/{templateName}"
106 type="org.onap.clamp.clds.model.CldsTemplate"
107 consumes="application/json"
108 outType="org.onap.clamp.clds.model.CldsTemplate"
109 produces="application/json">
110 <to
111 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=putTemplate(${header.templateName},${body})" />
112 </put>
113 <get uri="/cldsTempate/template-names"
114 outType="org.onap.clamp.clds.model.ValueItem"
115 produces="application/json">
116 <to
117 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplateNames()" />
118 </get>
119
120
121 <put uri="/tosca/models/{toscaModelName}"
122 type="org.onap.clamp.clds.model.CldsToscaModel"
123 consumes="application/json" produces="application/json">
124 <to
125 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=parseToscaModelAndSave(${header.toscaModelName},${body})" />
126 </put>
127 <get uri="/tosca/models/policyType/{policyType}"
128 produces="application/json">
129 <to
130 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" />
131 </get>
132 <get uri="/tosca/models"
133 outType="org.onap.clamp.clds.model.CldsToscaModel"
134 produces="application/json">
135 <to
136 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" />
137 </get>
138 <get uri="/tosca/models/{toscaModelName}"
139 outType="org.onap.clamp.clds.model.CldsToscaModel"
140 produces="application/json">
141 <to
142 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" />
143 </get>
144
145
146 <put uri="/dictionary/{dictionaryName}"
147 type="org.onap.clamp.clds.model.CldsDictionary"
148 outType="org.onap.clamp.clds.model.CldsDictionary"
149 consumes="application/json" produces="application/json">
150 <to
151 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" />
152 </put>
153
154 <get uri="/dictionary"
155 outType="org.onap.clamp.clds.model.CldsDictionary"
156 produces="application/json">
157 <to
158 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" />
159 </get>
160
161 <put uri="/dictionary/{dictionaryName}/items"
162 type="org.onap.clamp.clds.model.CldsDictionaryItem"
163 outType="org.onap.clamp.clds.model.CldsDictionaryItem"
164 consumes="application/json" produces="application/json">
165 <to
166 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" />
167 </put>
168
169 <get uri="/dictionary/{dictionaryName}/items"
170 outType="org.onap.clamp.clds.model.CldsDictionary"
171 produces="application/json">
172 <to
173 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" />
174 </get>
175
176 <get uri="/user/getUser" produces="text/plain">
177 <to
178 uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
179 </get>
180 </rest>
xg353y054f1d12018-07-23 16:02:28 +0200181</rests>