blob: 7abffd35d8df0fa90cbdef9a83165ed1f5509c94 [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
sebdet6a0c2052018-12-11 12:43:26 +01007 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsDetails()" />
sebdet86bf8ee2018-09-05 18:07:57 +02008 </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>
sebdet86bf8ee2018-09-05 18:07:57 +020059 <get uri="/clds/properties" produces="application/json">
60 <to
61 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
62 </get>
sebdet86bf8ee2018-09-05 18:07:57 +020063 <put uri="/clds/deploy/{modelName}"
64 type="org.onap.clamp.clds.model.CldsModel"
65 consumes="application/json" produces="application/json">
66 <to
67 uri="bean:org.onap.clamp.clds.service.CldsService?method=deployModel(${header.modelName},${body})" />
68 </put>
69 <put uri="/clds/undeploy/{modelName}"
70 type="org.onap.clamp.clds.model.CldsModel"
71 consumes="application/json" produces="application/json">
72 <to
73 uri="bean:org.onap.clamp.clds.service.CldsService?method=unDeployModel(${header.modelName},${body})" />
74 </put>
75
76
77
78
79 <get uri="/cldsTempate/template/bpmn/{templateName}"
80 produces="text/xml">
81 <to
82 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
83 </get>
84 <get uri="/cldsTempate/template/image/{templateName}"
85 produces="text/xml">
86 <to
87 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
88 </get>
89 <get uri="/cldsTempate/template/{templateName}"
90 outType="org.onap.clamp.clds.model.CldsTemplate"
91 produces="application/json">
92 <to
93 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplate(${header.templateName})" />
94 </get>
95 <put uri="/cldsTempate/template/{templateName}"
96 type="org.onap.clamp.clds.model.CldsTemplate"
97 consumes="application/json"
98 outType="org.onap.clamp.clds.model.CldsTemplate"
99 produces="application/json">
100 <to
101 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=putTemplate(${header.templateName},${body})" />
102 </put>
103 <get uri="/cldsTempate/template-names"
104 outType="org.onap.clamp.clds.model.ValueItem"
105 produces="application/json">
106 <to
107 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplateNames()" />
108 </get>
109
110
111 <put uri="/tosca/models/{toscaModelName}"
112 type="org.onap.clamp.clds.model.CldsToscaModel"
113 consumes="application/json" produces="application/json">
114 <to
115 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=parseToscaModelAndSave(${header.toscaModelName},${body})" />
116 </put>
117 <get uri="/tosca/models/policyType/{policyType}"
xg353y18857412019-02-20 12:45:04 +0100118 outType="org.onap.clamp.clds.model.CldsToscaModel"
sebdet86bf8ee2018-09-05 18:07:57 +0200119 produces="application/json">
120 <to
121 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" />
122 </get>
123 <get uri="/tosca/models"
124 outType="org.onap.clamp.clds.model.CldsToscaModel"
125 produces="application/json">
126 <to
127 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" />
128 </get>
129 <get uri="/tosca/models/{toscaModelName}"
130 outType="org.onap.clamp.clds.model.CldsToscaModel"
131 produces="application/json">
132 <to
133 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" />
134 </get>
135
136
137 <put uri="/dictionary/{dictionaryName}"
138 type="org.onap.clamp.clds.model.CldsDictionary"
139 outType="org.onap.clamp.clds.model.CldsDictionary"
140 consumes="application/json" produces="application/json">
141 <to
142 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" />
143 </put>
144
145 <get uri="/dictionary"
146 outType="org.onap.clamp.clds.model.CldsDictionary"
147 produces="application/json">
148 <to
149 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" />
150 </get>
151
152 <put uri="/dictionary/{dictionaryName}/items"
153 type="org.onap.clamp.clds.model.CldsDictionaryItem"
154 outType="org.onap.clamp.clds.model.CldsDictionaryItem"
155 consumes="application/json" produces="application/json">
156 <to
157 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" />
158 </put>
159
160 <get uri="/dictionary/{dictionaryName}/items"
161 outType="org.onap.clamp.clds.model.CldsDictionary"
162 produces="application/json">
163 <to
164 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" />
165 </get>
166
167 <get uri="/user/getUser" produces="text/plain">
168 <to
169 uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
170 </get>
171 </rest>
xg353y054f1d12018-07-23 16:02:28 +0200172</rests>