aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/rest/clds-services.xml
blob: d4baa09a9135bd8c33a5277aee3b34fc1f572542 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<rests xmlns="http://camel.apache.org/schema/spring">
	<rest >
		<get uri="/v1/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="/v1/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="/v1/healthcheck" produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" />
		</get>
		<get uri="/v1/clds/model/bpmn/{modelName}" produces="text/xml">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" />
		</get>
		<get uri="/v1/clds/model/image/{modelName}" produces="text/xml">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" />
		</get>
		<get uri="/v1/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="/v1/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="/v1/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="/v1/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="/v1/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="/v1/clds/properties" produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
		</get>
		<put uri="/v1/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="/v1/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="/v1/cldsTempate/template/bpmn/{templateName}"
			produces="text/xml">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
		</get>
		<get uri="/v1/cldsTempate/template/image/{templateName}"
			produces="text/xml">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
		</get>
		<get uri="/v1/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="/v1/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="/v1/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>


		<put uri="/v1/tosca/models/{toscaModelName}"
			type="org.onap.clamp.clds.model.CldsToscaModel"
			consumes="application/json" produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=parseToscaModelAndSave(${header.toscaModelName},${body})" />
		</put>
		<get uri="/v1/tosca/models/policyType/{policyType}"
		outType="org.onap.clamp.clds.model.CldsToscaModel"
			produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" />
		</get>
		<get uri="/v1/tosca/models"
			outType="org.onap.clamp.clds.model.CldsToscaModel"
			produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" />
		</get>
		<get uri="/v1/tosca/models/{toscaModelName}"
			outType="org.onap.clamp.clds.model.CldsToscaModel"
			produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" />
		</get>


		<put uri="/v1/dictionary/{dictionaryName}"
			type="org.onap.clamp.clds.model.CldsDictionary"
			outType="org.onap.clamp.clds.model.CldsDictionary"
			consumes="application/json" produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" />
		</put>

		<get uri="/v1/dictionary"
			outType="org.onap.clamp.clds.model.CldsDictionary"
			produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" />
		</get>

		<put uri="/v1/dictionary/{dictionaryName}/items"
			type="org.onap.clamp.clds.model.CldsDictionaryItem"
			outType="org.onap.clamp.clds.model.CldsDictionaryItem"
			consumes="application/json" produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" />
		</put>

		<get uri="/v1/dictionary/{dictionaryName}/items"
			outType="org.onap.clamp.clds.model.CldsDictionary"
			produces="application/json">
			<to
				uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" />
		</get>

		<get uri="/v1/user/getUser" produces="text/plain">
			<to
				uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
		</get>
	</rest>
</rests>