summaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/rest/clds-services.xml
blob: 1ea8213f5eaa38d8b6e4efb7972a21c9993a6bf3 (plain)
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<rests xmlns="http://camel.apache.org/schema/spring">
		<rest>
				<get uri="/clds/cldsDetails" outType="org.onap.clamp.clds.model.CldsMonitoringDetails" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getCLDSDetails()" />
				</get>
				<get uri="/clds/cldsInfo" outType="org.onap.clamp.clds.model.CldsInfo" produces="application/json">
					<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsInfo()" />
				</get>
				<get uri="/healthcheck" produces="application/json">
					<to
								uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" />
				</get>
				<get uri="/clds/model/bpmn/{modelName}" produces="text/xml">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" />
				</get>
				<get uri="/clds/model/image/{modelName}" produces="text/xml">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" />
				</get>
				<get uri="/clds/model/{modelName}" outType="org.onap.clamp.clds.model.CldsModel" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getModel(${header.modelName})" />
				</get>
				<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">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=putModel(${header.modelName},${body})" />
				</put>
				<get uri="/clds/model-names" outType="org.onap.clamp.clds.model.ValueItem" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getModelNames()" />
				</get>
				<put uri="/clds/action/{action}/{modelName}?test={test}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=putModelAndProcessAction(${header.action},${header.modelName},${header.test},${body})" />
				</put>
				<post uri="/clds/dcae/event?test={test}" type="org.onap.clamp.clds.model.DcaeEvent" consumes="application/json" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=postDcaeEvent(${header.test},${body})" />
				</post>
				<get uri="/clds/sdc/services" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcServices()" />
				</get>
				<get uri="/clds/properties" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
				</get>
				<get uri="/clds/properties/{serviceInvariantUUID}?refresh={refresh}" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcPropertiesByServiceUUIDForRefresh(${header.serviceInvariantUUID},${header.refresh})" />
				</get>
				<put uri="/clds/deploy/{modelName}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=deployModel(${header.modelName},${body})" />
				</put>
				<put uri="/clds/undeploy/{modelName}" type="org.onap.clamp.clds.model.CldsModel" consumes="application/json" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsService?method=unDeployModel(${header.modelName},${body})" />
				</put>
				
				
				
				
				<get uri="/cldsTempate/template/bpmn/{templateName}" produces="text/xml">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
				</get>
				<get uri="/cldsTempate/template/image/{templateName}" produces="text/xml">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
				</get>
				<get uri="/cldsTempate/template/{templateName}" outType="org.onap.clamp.clds.model.CldsTemplate" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplate(${header.templateName})" />
				</get>
				<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">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=putTemplate(${header.templateName},${body})" />
				</put>
				<get uri="/cldsTempate/template-names" outType="org.onap.clamp.clds.model.ValueItem" produces="application/json">
						<to
								uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplateNames()" />
				</get>
				
				
				
				<get uri="/user/getUser" produces="text/plain">
						<to
								uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
				</get>
		</rest>
</rests>