blob: 1ea8213f5eaa38d8b6e4efb7972a21c9993a6bf3 [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
67 <get uri="/cldsTempate/template/bpmn/{templateName}" produces="text/xml">
68 <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
89
90 <get uri="/user/getUser" produces="text/plain">
91 <to
92 uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
93 </get>
94 </rest>
95</rests>