blob: b63591f760951ff5099ef6f921cfbdfe1037b5b1 [file] [log] [blame]
xg353y054f1d12018-07-23 16:02:28 +02001<rests xmlns="http://camel.apache.org/schema/spring">
2 <rest>
3 <get uri="/clds/cldsDetails" outType="org.onap.clamp.clds.model.CldsMonitoringDetails" produces="application/json">
4 <to
5 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCLDSDetails()" />
6 </get>
7 <get uri="/clds/cldsInfo" outType="org.onap.clamp.clds.model.CldsInfo" produces="application/json">
8 <to
9 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsInfo()" />
10 </get>
11 <get uri="/healthcheck" produces="application/json">
12 <to
13 uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" />
14 </get>
15 <get uri="/clds/model/bpmn/{modelName}" produces="text/xml">
16 <to
17 uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" />
18 </get>
19 <get uri="/clds/model/image/{modelName}" produces="text/xml">
20 <to
21 uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" />
22 </get>
23 <get uri="/clds/model/{modelName}" outType="org.onap.clamp.clds.model.CldsModel" produces="application/json">
24 <to
25 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModel(${header.modelName})" />
26 </get>
27 <put uri="/clds/model/{modelName}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" outType="org.onap.clamp.clds.model.CldsModel" produces="application/json">
28 <to
29 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModel(${header.modelName},${body})" />
30 </put>
31 <get uri="/clds/model-names" outType="org.onap.clamp.clds.model.ValueItem" produces="application/json">
32 <to
33 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModelNames()" />
34 </get>
35 <put uri="/clds/action/{action}/{modelName}?test={test}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
36 <to
37 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModelAndProcessAction(${header.action},${header.modelName},${header.test},${body})" />
38 </put>
39 <post uri="/clds/dcae/event?test={test}" type="org.onap.clamp.clds.model.DcaeEvent" consumes="application/json" produces="application/json">
40 <to
41 uri="bean:org.onap.clamp.clds.service.CldsService?method=postDcaeEvent(${header.test},${body})" />
42 </post>
43 <get uri="/clds/sdc/services" produces="application/json">
44 <to
45 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcServices()" />
46 </get>
47 <get uri="/clds/properties" produces="application/json">
48 <to
49 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
50 </get>
51 <get uri="/clds/properties/{serviceInvariantUUID}?refresh={refresh}" produces="application/json">
52 <to
53 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcPropertiesByServiceUUIDForRefresh(${header.serviceInvariantUUID},${header.refresh})" />
54 </get>
55 <put uri="/clds/deploy/{modelName}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
56 <to
57 uri="bean:org.onap.clamp.clds.service.CldsService?method=deployModel(${header.modelName},${body})" />
58 </put>
59 <put uri="/clds/undeploy/{modelName}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
60 <to
61 uri="bean:org.onap.clamp.clds.service.CldsService?method=unDeployModel(${header.modelName},${body})" />
62 </put>
63
64
65
66
sebdet6651e172018-09-03 14:39:21 +020067 <get uri="/cldsTempate/template/bpmn/{templateName}" produces="text/xml" >
xg353y054f1d12018-07-23 16:02:28 +020068 <to
69 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
70 </get>
71 <get uri="/cldsTempate/template/image/{templateName}" produces="text/xml">
72 <to
73 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
74 </get>
75 <get uri="/cldsTempate/template/{templateName}" outType="org.onap.clamp.clds.model.CldsTemplate" produces="application/json">
76 <to
77 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplate(${header.templateName})" />
78 </get>
79 <put uri="/cldsTempate/template/{templateName}" type="org.onap.clamp.clds.model.CldsTemplate" consumes="application/json" outType="org.onap.clamp.clds.model.CldsTemplate" produces="application/json">
80 <to
81 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=putTemplate(${header.templateName},${body})" />
82 </put>
83 <get uri="/cldsTempate/template-names" outType="org.onap.clamp.clds.model.ValueItem" produces="application/json">
84 <to
85 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplateNames()" />
86 </get>
87
88
sebdet6651e172018-09-03 14:39:21 +020089 <put uri="/tosca/models/{toscaModelName}" type="org.onap.clamp.clds.model.CldsToscaModel" consumes="application/json" produces="application/json">
90 <to
91 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=parseToscaModelAndSave(${header.toscaModelName},${body})" />
92 </put>
93 <get uri="/tosca/models/policyType/{policyType}" produces="application/json">
94 <to
95 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" />
96 </get>
97 <get uri="/tosca/models" outType="org.onap.clamp.clds.model.CldsToscaModel" produces="application/json">
98 <to
99 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" />
100 </get>
101 <get uri="/tosca/models/{toscaModelName}" outType="org.onap.clamp.clds.model.CldsToscaModel" produces="application/json">
102 <to
103 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" />
104 </get>
105
106
107 <put uri="/dictionary/{dictionaryName}" type="org.onap.clamp.clds.model.CldsDictionary" outType="org.onap.clamp.clds.model.CldsDictionary" consumes="application/json" produces="application/json">
108 <to
109 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" />
110 </put>
111
112 <get uri="/dictionary" outType="org.onap.clamp.clds.model.CldsDictionary" produces="application/json">
113 <to
114 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" />
115 </get>
116
117 <put uri="/dictionary/{dictionaryName}/items" type="org.onap.clamp.clds.model.CldsDictionaryItem" outType="org.onap.clamp.clds.model.CldsDictionaryItem" consumes="application/json" produces="application/json">
118 <to
119 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" />
120 </put>
121
122 <get uri="/dictionary/{dictionaryName}/items" outType="org.onap.clamp.clds.model.CldsDictionary" produces="application/json">
123 <to
124 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" />
125 </get>
xg353y054f1d12018-07-23 16:02:28 +0200126
127 <get uri="/user/getUser" produces="text/plain">
128 <to
129 uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
130 </get>
131 </rest>
132</rests>