Fix refresh action
[clamp.git] / src / main / resources / clds / camel / rest / clamp-api-v2.xml
1 <rests xmlns="http://camel.apache.org/schema/spring">
2         <rest>
3                 <get uri="/v2/loop/getAllNames" outType="java.lang.String[]"
4                         produces="application/json">
5                         <route>
6                                 <removeHeaders pattern="*" />
7                                 <doTry>
8                                         <to
9                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop')" />
10                                         <to
11                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
12                                         <to
13                                                 uri="bean:org.onap.clamp.loop.LoopController?method=getLoopNames()" />
14                                         <to
15                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
16                                         <doCatch>
17                                                 <exception>java.lang.Exception</exception>
18                                                 <handled>
19                                                         <constant>true</constant>
20                                                 </handled>
21                                                 <to
22                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
23                                                 <log loggingLevel="ERROR"
24                                                          message="GET All Loop names FAILED: ${exception.stacktrace}" />
25
26                                                 <setHeader headerName="CamelHttpResponseCode">
27                                                         <constant>500</constant>
28                                                 </setHeader>
29                                                 <setBody>
30                                                         <simple>GET All Loop names FAILED</simple>
31                                                 </setBody>
32                                         </doCatch>
33                                 </doTry>
34                         </route>
35                 </get>
36                 <get uri="/v2/loop/{loopName}" outType="org.onap.clamp.loop.Loop"
37                         produces="application/json">
38                         <route>
39                                 <removeHeaders pattern="*" excludePattern="loopName" />
40                                 <doTry>
41                                         <to
42                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Loop')" />
43                                         <to
44                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
45                                         <to
46                                                 uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
47                                         <to
48                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
49                                         <doCatch>
50                                                 <exception>java.lang.Exception</exception>
51                                                 <handled>
52                                                         <constant>true</constant>
53                                                 </handled>
54                                                 <to
55                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
56                                                 <log loggingLevel="ERROR"
57                                                          message="GET Loop request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
58
59                                                 <setHeader headerName="CamelHttpResponseCode">
60                                                         <constant>500</constant>
61                                                 </setHeader>
62                                                 <setBody>
63                                                         <simple>GET Loop FAILED</simple>
64                                                 </setBody>
65                                         </doCatch>
66                                 </doTry>
67                         </route>
68                 </get>
69                 <get uri="/v2/loop/svgRepresentation/{loopName}"
70                         outType="java.lang.String" produces="application/xml">
71                         <route>
72                                 <removeHeaders pattern="*" excludePattern="loopName" />
73                                 <doTry>
74                                         <to
75                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation')" />
76                                         <to
77                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
78                                         <to
79                                                 uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" />
80                                         <to
81                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
82                                         <doCatch>
83                                                 <exception>java.lang.Exception</exception>
84                                                 <handled>
85                                                         <constant>true</constant>
86                                                 </handled>
87                                                 <to
88                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
89                                                 <log loggingLevel="ERROR"
90                                                          message="GET SVG request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
91
92                                                 <setHeader headerName="CamelHttpResponseCode">
93                                                         <constant>500</constant>
94                                                 </setHeader>
95                                                 <setBody>
96                                                         <simple>GET SVG For loop FAILED</simple>
97                                                 </setBody>
98                                         </doCatch>
99                                 </doTry>
100                         </route>
101                 </get>
102
103                 <post uri="/v2/loop/updateGlobalProperties/{loopName}"
104                         type="com.google.gson.JsonObject" consumes="application/json"
105                         outType="org.onap.clamp.loop.Loop" produces="application/json">
106                         <route>
107                                 <removeHeaders pattern="*" excludePattern="loopName" />
108                                 <doTry>
109                                         <to
110                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update the global properties')" />
111                                         <to
112                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
113                                         <setHeader headerName="GlobalPropertiesJson">
114                                                 <simple>${body}</simple>
115                                         </setHeader>
116                                         <to uri="direct:load-loop" />
117                                         <to
118                                                 uri="bean:org.onap.clamp.loop.LoopController?method=updateGlobalPropertiesJson(${header.loopName},${header.GlobalPropertiesJson})" />
119                                         <to
120                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Global Properties UPDATED','INFO',${exchangeProperty[loopObject]})" />
121                                         <to
122                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
123                                         <doCatch>
124                                                 <exception>java.lang.Exception</exception>
125                                                 <handled>
126                                                         <constant>true</constant>
127                                                 </handled>
128                                                 <to
129                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
130                                                 <log loggingLevel="ERROR"
131                                                          message="UPDATE Global properties FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
132
133                                                 <setHeader headerName="CamelHttpResponseCode">
134                                                         <constant>500</constant>
135                                                 </setHeader>
136                                                 <setBody>
137                                                         <simple>UPDATE Global properties FAILED </simple>
138                                                 </setBody>
139                                         </doCatch>
140                                 </doTry>
141                         </route>
142                 </post>
143                 <post uri="/v2/loop/updateOperationalPolicies/{loopName}"
144                         type="com.google.gson.JsonArray" consumes="application/json"
145                         outType="org.onap.clamp.loop.Loop" produces="application/json">
146                         <route>
147                                 <removeHeaders pattern="*" excludePattern="loopName" />
148                                 <doTry>
149                                         <to
150                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update operational policies')" />
151                                         <to
152                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
153                                         <setHeader headerName="OperationalPoliciesArray">
154                                                 <simple>${body}</simple>
155                                         </setHeader>
156                                         <to uri="direct:load-loop" />
157                                         <to
158                                                 uri="bean:org.onap.clamp.loop.LoopController?method=updateOperationalPolicies(${header.loopName},${header.OperationalPoliciesArray})" />
159                                         <to
160                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Operational and Guard policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
161                                         <to
162                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
163                                         <doCatch>
164                                                 <exception>java.lang.Exception</exception>
165                                                 <handled>
166                                                         <constant>true</constant>
167                                                 </handled>
168                                                 <to
169                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
170                                                 <log loggingLevel="ERROR"
171                                                          message="UPDATE Operational policies FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
172                                                 <to
173                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UPDATE Operational policies request FAILED, Error reported: ${exception.message}','ERROR',${exchangeProperty[loopObject]})" />
174
175                                                 <setHeader headerName="CamelHttpResponseCode">
176                                                         <constant>500</constant>
177                                                 </setHeader>
178                                                 <setBody>
179                                                         <simple>UPDATE Operational policies FAILED</simple>
180                                                 </setBody>
181                                         </doCatch>
182                                 </doTry>
183                         </route>
184                 </post>
185                 <post uri="/v2/loop/updateMicroservicePolicy/{loopName}"
186                         type="org.onap.clamp.policy.microservice.MicroServicePolicy"
187                         consumes="application/json"
188                         outType="org.onap.clamp.policy.microservice.MicroServicePolicy"
189                         produces="application/json">
190                         <route>
191                                 <removeHeaders pattern="*" excludePattern="loopName" />
192                                 <doTry>
193                                         <to
194                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Update Microservice policies')" />
195                                         <to
196                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
197                                         <setProperty propertyName="MicroServicePolicyObject">
198                                                 <simple>${body}</simple>
199                                         </setProperty>
200
201                                         <to uri="direct:load-loop" />
202                                         <to
203                                                 uri="bean:org.onap.clamp.loop.LoopController?method=updateMicroservicePolicy(${header.loopName},${exchangeProperty[MicroServicePolicyObject]})" />
204                                         <to
205                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Micro Service policies UPDATED','INFO',${exchangeProperty[loopObject]})" />
206                                         <to
207                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
208                                         <doCatch>
209                                                 <exception>java.lang.Exception</exception>
210                                                 <handled>
211                                                         <constant>true</constant>
212                                                 </handled>
213                                                 <to
214                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
215                                                 <log loggingLevel="ERROR"
216                                                          message="UPDATE MicroService policy FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
217                                                 <to
218                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UPDATE MicroService policy request FAILED, Error reported: ${exception.message}','ERROR',${exchangeProperty[loopObject]})" />
219                                                 <setHeader headerName="CamelHttpResponseCode">
220                                                         <constant>500</constant>
221                                                 </setHeader>
222                                                 <setBody>
223                                                         <simple>UPDATE MicroService policy FAILED</simple>
224                                                 </setBody>
225                                         </doCatch>
226                                 </doTry>
227                         </route>
228                 </post>
229                 <put uri="/v2/loop/deploy/{loopName}"
230                         outType="org.onap.clamp.loop.Loop" produces="application/json">
231                         <route>
232                                 <removeHeaders pattern="*" excludePattern="loopName" />
233                                 <doTry>
234                                         <log loggingLevel="INFO"
235                                                 message="DCAE DEPLOY request for loop: ${header.loopName}" />
236                                         <to
237                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE DEPLOY request')" />
238                                         <to
239                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
240                                         <to uri="direct:load-loop" />
241                                         <to
242                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE DEPLOY request','INFO',${exchangeProperty[loopObject]})" />
243
244                                         <to uri="direct:deploy-loop" />
245
246                                         <log loggingLevel="INFO"
247                                                 message="DEPLOY request successfully executed for loop: ${header.loopName}" />
248                                         <to
249                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
250                                         <to
251                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
252                                         <doCatch>
253                                                 <exception>java.lang.Exception</exception>
254                                                 <handled>
255                                                         <constant>true</constant>
256                                                 </handled>
257                                                 <to
258                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
259                                                 <log loggingLevel="ERROR"
260                                                          message="DEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
261                                                 <to
262                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
263                                                 <setHeader headerName="CamelHttpResponseCode">
264                                                         <constant>500</constant>
265                                                 </setHeader>
266                                                 <setBody>
267                                                         <simple>DEPLOY request FAILED</simple>
268                                                 </setBody>
269                                         </doCatch>
270                                 </doTry>
271                         </route>
272                 </put>
273                 <put uri="/v2/loop/refreshMicroServicePolicyJsonSchema/{loopName}/{microServicePolicyName}"
274                          outType="org.onap.clamp.loop.Loop" produces="application/json">
275                         <route>
276                                 <removeHeaders pattern="*" excludePattern="loopName|microServicePolicyName" />
277                                 <doTry>
278                                         <log loggingLevel="INFO"
279                                                  message="Refresh Micro Service Policy UI for loop: ${header.loopName} and ${header.microServicePolicyName}" />
280                                         <to
281                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Micro Service Policy UI request')" />
282                                         <to
283                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
284                                         <to uri="direct:load-loop" />
285                                         <to
286                                                         uri="bean:org.onap.clamp.loop.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
287                                         <to
288                                                         uri="bean:org.onap.clamp.loop.LoopController?method=refreshMicroServicePolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.microServicePolicyName})" />
289                                         <log loggingLevel="INFO"
290                                                  message="REFRESH Micro Service policy request successfully executed for loop: ${header.loopName}" />
291                                         <to
292                                                         uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Micro Service policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
293                                         <to
294                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
295                                         <doCatch>
296                                                 <exception>java.lang.Exception</exception>
297                                                 <handled>
298                                                         <constant>true</constant>
299                                                 </handled>
300                                                 <to
301                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
302                                                 <log loggingLevel="ERROR"
303                                                          message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
304                                                 <to
305                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
306                                                 <setHeader headerName="CamelHttpResponseCode">
307                                                         <constant>500</constant>
308                                                 </setHeader>
309                                                 <setBody>
310                                                         <simple>REFRESH json schema request FAILED</simple>
311                                                 </setBody>
312                                         </doCatch>
313                                 </doTry>
314                         </route>
315                 </put>
316                 <put uri="/v2/loop/refreshOperationalPolicyJsonSchema/{loopName}/{operationalPolicyName}"
317                         outType="org.onap.clamp.loop.Loop" produces="application/json">
318                         <route>
319                                 <removeHeaders pattern="*" excludePattern="loopName|operationalPolicyName" />
320                                 <doTry>
321                                         <log loggingLevel="INFO"
322                                                 message="Refresh Operational Policy UI for loop: ${header.loopName} and ${header.operationalPolicyName}" />
323                                         <to
324                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REFRESH Operational Policy UI request')" />
325                                         <to
326                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
327                                         <to uri="direct:load-loop" />
328                                         <to
329                                                         uri="bean:org.onap.clamp.loop.cds.CdsDataInstaller?method=updateCdsServiceProperties(${exchangeProperty[loopObject].getModelService()})" />
330                                         <to
331                                                 uri="bean:org.onap.clamp.loop.LoopController?method=refreshOperationalPolicyJsonRepresentation(${exchangeProperty[loopObject]},${header.operationalPolicyName})" />
332                                         <log loggingLevel="INFO"
333                                                 message="REFRESH operational policy request successfully executed for loop: ${header.loopName}" />
334                                         <to
335                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH operational policy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
336                                         <to
337                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
338                                         <doCatch>
339                                                 <exception>java.lang.Exception</exception>
340                                                 <handled>
341                                                         <constant>true</constant>
342                                                 </handled>
343                                                 <to
344                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
345                                                 <log loggingLevel="ERROR"
346                                                          message="REFRESH json schema request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
347                                                 <to
348                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REFRESH Json schema request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
349                                                 <setHeader headerName="CamelHttpResponseCode">
350                                                         <constant>500</constant>
351                                                 </setHeader>
352                                                 <setBody>
353                                                         <simple>REFRESH json schema request FAILED</simple>
354                                                 </setBody>
355                                         </doCatch>
356                                 </doTry>
357                         </route>
358                 </put>
359                 <put uri="/v2/loop/undeploy/{loopName}"
360                         outType="org.onap.clamp.loop.Loop" produces="application/json">
361                         <route>
362                                 <removeHeaders pattern="*" excludePattern="loopName" />
363                                 <doTry>
364                                         <log loggingLevel="INFO"
365                                                 message="DCAE UNDEPLOY request for loop: ${header.loopName}" />
366                                         <to
367                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'DCAE UNDEPLOY request')" />
368                                         <to
369                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
370                                         <to uri="direct:load-loop" />
371                                         <to
372                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DCAE UNDEPLOY request','INFO',${exchangeProperty[loopObject]})" />
373                                         <to uri="direct:undeploy-loop" />
374
375                                         <log loggingLevel="INFO"
376                                                 message="UNDEPLOY request successfully executed for loop: ${header.loopName}" />
377                                         <to
378                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request successfully executed','INFO',${exchangeProperty[loopObject]})" />
379                                         <to
380                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
381                                         <doCatch>
382                                                 <exception>java.lang.Exception</exception>
383                                                 <handled>
384                                                         <constant>true</constant>
385                                                 </handled>
386                                                 <to
387                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
388                                                 <log loggingLevel="ERROR"
389                                                          message="UNDEPLOY request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
390                                                 <to
391                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('UNDEPLOY request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
392                                                 <setHeader headerName="CamelHttpResponseCode">
393                                                         <constant>500</constant>
394                                                 </setHeader>
395                                                 <setBody>
396                                                         <simple>UNDEPLOY request FAILED</simple>
397                                                 </setBody>
398                                         </doCatch>
399                                 </doTry>
400                         </route>
401                 </put>
402                 <put uri="/v2/loop/stop/{loopName}"
403                         outType="org.onap.clamp.loop.Loop" produces="application/json">
404                         <route>
405                                 <removeHeaders pattern="*" excludePattern="loopName" />
406                                 <doTry>
407                                         <log loggingLevel="INFO"
408                                                 message="STOP request for loop: ${header.loopName}" />
409                                         <to
410                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'STOP request')" />
411                                         <to
412                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
413                                         <to uri="direct:load-loop" />
414                                         <to
415                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request','INFO',${exchangeProperty[loopObject]})" />
416
417                                         <to uri="direct:remove-all-policy-from-active-pdp-group" />
418                                         <log loggingLevel="INFO"
419                                                 message="STOP request successfully executed for loop: ${header.loopName}" />
420                                         <to
421                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request successfully executed','INFO',${exchangeProperty[loopObject]})" />
422                                         <to
423                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
424                                         <doCatch>
425                                                 <exception>java.lang.Exception</exception>
426                                                 <handled>
427                                                         <constant>true</constant>
428                                                 </handled>
429                                                 <to
430                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
431                                                 <log loggingLevel="ERROR"
432                                                          message="STOP request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
433                                                 <to
434                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('STOP request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
435                                                 <setHeader headerName="CamelHttpResponseCode">
436                                                         <constant>500</constant>
437                                                 </setHeader>
438                                                 <setBody>
439                                                         <simple>STOP request FAILED</simple>
440                                                 </setBody>
441                                         </doCatch>
442                                 </doTry>
443                         </route>
444                 </put>
445                 <put uri="/v2/loop/restart/{loopName}"
446                         outType="org.onap.clamp.loop.Loop" produces="application/json">
447                         <route>
448                                 <removeHeaders pattern="*" excludePattern="loopName" />
449                                 <doTry>
450                                         <log loggingLevel="INFO"
451                                                 message="RESTART request for loop: ${header.loopName}" />
452                                         <to
453                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'RESTART request')" />
454                                         <to
455                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
456                                         <to uri="direct:load-loop" />
457
458                                         <to
459                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request','INFO',${exchangeProperty[loopObject]})" />
460
461                                         <to uri="direct:add-all-to-active-pdp-group" />
462                                         <log loggingLevel="INFO"
463                                                 message="RESTART request successfully executed for loop: ${header.loopName}" />
464                                         <to
465                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request successfully executed','INFO',${exchangeProperty[loopObject]})" />
466                                         <to
467                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
468                                         <doCatch>
469                                                 <exception>java.lang.Exception</exception>
470                                                 <handled>
471                                                         <constant>true</constant>
472                                                 </handled>
473                                                 <to
474                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
475                                                 <log loggingLevel="ERROR"
476                                                          message="RESTART request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
477                                                 <to
478                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('RESTART request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
479                                                 <setHeader headerName="CamelHttpResponseCode">
480                                                         <constant>500</constant>
481                                                 </setHeader>
482                                                 <setBody>
483                                                         <simple>RESTART request FAILED</simple>
484                                                 </setBody>
485                                         </doCatch>
486                                 </doTry>
487                         </route>
488                 </put>
489                 <put uri="/v2/loop/submit/{loopName}"
490                         outType="org.onap.clamp.loop.Loop" produces="application/json">
491                         <route>
492                                 <removeHeaders pattern="*" excludePattern="loopName" />
493                                 <doTry>
494                                         <log loggingLevel="INFO"
495                                                 message="POLICY SUBMIT request for loop: ${header.loopName}" />
496                                         <to
497                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'POLICY SUBMIT request')" />
498                                         <to
499                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
500                                         <to uri="direct:load-loop" />
501                                         <to
502                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('POLICY SUBMIT request','INFO',${exchangeProperty[loopObject]})" />
503                                         <setProperty propertyName="raiseHttpExceptionFlag">
504                                                 <simple resultType="java.lang.Boolean">false</simple>
505                                         </setProperty>
506                                         <to uri="direct:remove-all-policy-from-active-pdp-group" />
507                                         <log loggingLevel="INFO"
508                                                 message="Processing all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
509                                         <split>
510                                                 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
511                                                 </simple>
512                                                 <setProperty propertyName="policy">
513                                                         <simple>${body}</simple>
514                                                 </setProperty>
515                                                 <log loggingLevel="INFO"
516                                                         message="Processing Micro Service Policy: ${exchangeProperty[policy].getName()}" />
517                                                 <setProperty propertyName="raiseHttpExceptionFlag">
518                                                         <simple resultType="java.lang.Boolean">false</simple>
519                                                 </setProperty>
520                                                 <to uri="direct:delete-policy" />
521                                                 <to uri="direct:create-policy" />
522                                         </split>
523                                         <log loggingLevel="INFO"
524                                                 message="Processing all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
525                                         <split>
526                                                 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
527                                                 </simple>
528                                                 <setProperty propertyName="policy">
529                                                         <simple>${body}</simple>
530                                                 </setProperty>
531                                                 <log loggingLevel="INFO"
532                                                         message="Processing Operational Policy: ${exchangeProperty[policy].getName()}" />
533                                                 <setProperty propertyName="raiseHttpExceptionFlag">
534                                                         <simple resultType="java.lang.Boolean">false</simple>
535                                                 </setProperty>
536
537                                                 <to uri="direct:delete-policy" />
538                                                 <to uri="direct:create-policy" />
539                                                 <choice>
540                                                         <when>
541                                                                 <simple>${exchangeProperty['policy'].isLegacy()} == true
542                                                                 </simple>
543                                                                 <log loggingLevel="INFO"
544                                                                         message="Processing all GUARD policies (LEGACY) defined in loop ${exchangeProperty[loopObject].getName()}" />
545                                                                 <split>
546                                                                         <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
547                                                                         </simple>
548                                                                         <setProperty propertyName="guardPolicy">
549                                                                                 <simple>${body}</simple>
550                                                                         </setProperty>
551                                                                         <log loggingLevel="INFO"
552                                                                                 message="Processing Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
553
554                                                                         <setProperty propertyName="raiseHttpExceptionFlag">
555                                                                                 <simple resultType="java.lang.Boolean">false</simple>
556                                                                         </setProperty>
557                                                                         <to uri="direct:delete-guard-policy" />
558                                                                         <to uri="direct:create-guard-policy" />
559                                                                 </split>
560                                                         </when>
561                                                 </choice>
562                                         </split>
563
564                                         <delay>
565                                                 <constant>3000</constant>
566                                         </delay>
567
568                                         <to uri="direct:add-all-to-active-pdp-group" />
569
570                                         <log loggingLevel="INFO"
571                                                 message="SUBMIT request successfully executed for loop: ${header.loopName}" />
572                                         <to
573                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request successfully executed','INFO',${exchangeProperty[loopObject]})" />
574                                         <to
575                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
576                                         <doCatch>
577                                                 <exception>java.lang.Exception</exception>
578                                                 <handled>
579                                                         <constant>true</constant>
580                                                 </handled>
581                                                 <to
582                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
583                                                 <log loggingLevel="ERROR"
584                                                          message="SUBMIT request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
585                                                 <to
586                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('SUBMIT request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
587                                                 <setHeader headerName="CamelHttpResponseCode">
588                                                         <constant>500</constant>
589                                                 </setHeader>
590                                                 <setBody>
591                                                         <simple>SUBMIT request FAILED</simple>
592                                                 </setBody>
593                                         </doCatch>
594                                 </doTry>
595                         </route>
596                 </put>
597                 <put uri="/v2/loop/delete/{loopName}">
598                         <route>
599                                 <removeHeaders pattern="*" excludePattern="loopName" />
600                                 <doTry>
601                                         <log loggingLevel="INFO"
602                                                 message="DELETE request for loop: ${header.loopName}" />
603                                         <to
604                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*,'DELETE request')" />
605                                         <to
606                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
607                                         <to uri="direct:load-loop" />
608                                         <to
609                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request','INFO',${exchangeProperty[loopObject]})" />
610                                         <to uri="direct:undeploy-loop" />
611                                         <to uri="direct:remove-all-policy-from-active-pdp-group" />
612                                         <log loggingLevel="INFO"
613                                                 message="Deleting all MICRO-SERVICES policies defined in loop ${exchangeProperty[loopObject].getName()}" />
614                                         <split>
615                                                 <simple>${exchangeProperty[loopObject].getMicroServicePolicies()}
616                                                 </simple>
617                                                 <setProperty propertyName="policy">
618                                                         <simple>${body}</simple>
619                                                 </setProperty>
620                                                 <log loggingLevel="INFO"
621                                                         message="Deleting Micro Service Policy: ${exchangeProperty[policy].getName()}" />
622                                                 <setProperty propertyName="raiseHttpExceptionFlag">
623                                                         <simple resultType="java.lang.Boolean">false</simple>
624                                                 </setProperty>
625                                                 <to uri="direct:delete-policy" />
626                                         </split>
627                                         <log loggingLevel="INFO"
628                                                 message="Deleting all OPERATIONAL policies defined in loop ${exchangeProperty[loopObject].getName()}" />
629                                         <split>
630                                                 <simple>${exchangeProperty[loopObject].getOperationalPolicies()}
631                                                 </simple>
632                                                 <setProperty propertyName="policy">
633                                                         <simple>${body}</simple>
634                                                 </setProperty>
635                                                 <log loggingLevel="INFO"
636                                                         message="Deleting Operational Policy: ${exchangeProperty[policy].getName()}" />
637                                                 <setProperty propertyName="raiseHttpExceptionFlag">
638                                                         <simple resultType="java.lang.Boolean">false</simple>
639                                                 </setProperty>
640                                                 <to uri="direct:delete-policy" />
641                                                 <choice>
642                                                         <when>
643                                                                 <simple>${exchangeProperty['policy'].isLegacy()} == true
644                                                                 </simple>
645                                                                 <log loggingLevel="INFO"
646                                                                         message="Deleting all GUARD policies (LEGACY) defined in loop ${exchangeProperty[loopObject].getName()}" />
647                                                                 <split>
648                                                                         <simple>${exchangeProperty[operationalPolicy].createGuardPolicyPayloads().entrySet()}
649                                                                         </simple>
650                                                                         <setProperty propertyName="guardPolicy">
651                                                                                 <simple>${body}</simple>
652                                                                         </setProperty>
653                                                                         <log loggingLevel="INFO"
654                                                                                 message="Deleting Guard Policy: ${exchangeProperty[guardPolicy].getKey()}" />
655                                                                         <setProperty propertyName="raiseHttpExceptionFlag">
656                                                                                 <simple resultType="java.lang.Boolean">false</simple>
657                                                                         </setProperty>
658                                                                         <to uri="direct:delete-guard-policy" />
659                                                                 </split>
660                                                         </when>
661                                                 </choice>
662                                         </split>
663                                         <to
664                                                 uri="bean:org.onap.clamp.loop.LoopController?method=deleteLoop(${header.loopName})" />
665                                         <log loggingLevel="INFO"
666                                                 message="DELETE request successfully executed for loop: ${header.loopName}" />
667                                         <to
668                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
669                                         <doCatch>
670                                                 <exception>java.lang.Exception</exception>
671                                                 <handled>
672                                                         <constant>true</constant>
673                                                 </handled>
674                                                 <to
675                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
676                                                 <log loggingLevel="ERROR"
677                                                          message="DELETE request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
678                                                 <to
679                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('DELETE request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
680                                                 <setHeader headerName="CamelHttpResponseCode">
681                                                         <constant>500</constant>
682                                                 </setHeader>
683                                                 <setBody>
684                                                         <simple>DELETE request FAILED</simple>
685                                                 </setBody>
686                                         </doCatch>
687                                 </doTry>
688                         </route>
689                 </put>
690                 <get uri="/v2/loop/getstatus/{loopName}"
691                         outType="org.onap.clamp.loop.Loop" produces="application/json">
692                         <route>
693                                 <removeHeaders pattern="*" excludePattern="loopName" />
694                                 <doTry>
695                                         <log loggingLevel="INFO"
696                                                 message="GET STATUS request for loop: ${header.loopName}" />
697                                         <to
698                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET STATUS request')" />
699                                         <to
700                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','read')" />
701                                         <to uri="direct:load-loop" />
702                                         <to
703                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request','INFO',${exchangeProperty[loopObject]})" />
704                                         <to uri="direct:update-policy-status-for-loop" />
705                                         <to uri="direct:update-dcae-status-for-loop" />
706                                         <to uri="direct:update-loop-state" />
707
708                                         <to
709                                                         uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request successfully executed','INFO',${exchangeProperty[loopObject]})" />
710                                         <to
711                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
712                                         <doCatch>
713                                                 <exception>java.lang.Exception</exception>
714                                                 <handled>
715                                                         <constant>true</constant>
716                                                 </handled>
717                                                 <to
718                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
719                                                 <log loggingLevel="ERROR"
720                                                          message="GET STATUS request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
721                                                 <to
722                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('GET STATUS request failed, Error reported: ${exception} - Body: ${exception.responseBody}','ERROR',${exchangeProperty[loopObject]})" />
723                                         </doCatch>
724                                         <doFinally>
725                                                 <setBody>
726                                                         <simple>${exchangeProperty[loopObject]}</simple>
727                                                 </setBody>
728                                                 <setHeader headerName="CamelHttpResponseCode">
729                                                         <constant>200</constant>
730                                                 </setHeader>
731                                         </doFinally>
732                                 </doTry>
733                         </route>
734                 </get>
735
736                 <put uri="/v2/loop/addOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}" outType="org.onap.clamp.loop.Loop" produces="application/json">
737                         <route>
738                                 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion" />
739                                 <doTry>
740                                         <to
741                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add operational Policy')" />
742                                         <to
743                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
744                                         <to uri="direct:load-loop" />
745                                         <to
746                                                         uri="bean:org.onap.clamp.loop.LoopController?method=addOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
747                                         <to
748                                                         uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
749                                         <to
750                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
751                                         <doCatch>
752                                                 <exception>java.lang.Exception</exception>
753                                                 <handled>
754                                                         <constant>true</constant>
755                                                 </handled>
756                                                 <to
757                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
758                                                 <log loggingLevel="ERROR"
759                                                          message="ADD operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
760                                                 <to
761                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('ADD OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
762                                                 <setHeader headerName="CamelHttpResponseCode">
763                                                         <constant>500</constant>
764                                                 </setHeader>
765                                                 <setBody>
766                                                         <simple>ADD Operational policy request FAILED</simple>
767                                                 </setBody>
768                                         </doCatch>
769                                 </doTry>
770                         </route>
771                 </put>
772                 <put uri="/v2/loop/removeOperationaPolicy/{loopName}/policyModel/{policyType}/{policyVersion}/{policyName}" outType="org.onap.clamp.loop.Loop" produces="application/json">
773                         <route>
774                                 <removeHeaders pattern="*" excludePattern="loopName|policyType|policyVersion|policyName" />
775                                 <doTry>
776                                         <to
777                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'REMOVE operational Policy')" />
778                                         <to
779                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
780                                         <to uri="direct:load-loop" />
781                                         <setProperty propertyName="policyName">
782                                                 <simple>${header.policyName}</simple>
783                                         </setProperty>
784                                         <setProperty propertyName="policy">
785                                                 <simple>${exchangeProperty[loopObject].getOperationalPolicy(header.policyName)}</simple>
786                                         </setProperty>
787                                         <setProperty propertyName="raiseHttpExceptionFlag">
788                                                 <simple resultType="java.lang.Boolean">false</simple>
789                                         </setProperty>
790                                         <to uri="direct:remove-one-policy-from-active-pdp-group" />
791                                         <setProperty propertyName="raiseHttpExceptionFlag">
792                                                 <simple resultType="java.lang.Boolean">false</simple>
793                                         </setProperty>
794                                         <to uri="direct:delete-policy" />
795                                         <to
796                                                         uri="bean:org.onap.clamp.loop.LoopController?method=removeOperationalPolicy(${header.loopName},${header.policyType},${header.policyVersion})" />
797                                         <to
798                                                         uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request successfully executed','INFO',${exchangeProperty[loopObject]})" />
799                                         <to
800                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
801                                         <doCatch>
802                                                 <exception>java.lang.Exception</exception>
803                                                 <handled>
804                                                         <constant>true</constant>
805                                                 </handled>
806                                                 <to
807                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
808                                                 <log loggingLevel="ERROR"
809                                                          message="REMOVE operational policy request FAILED for loop: ${header.loopName}, ${exception.stacktrace}" />
810                                                 <to
811                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('REMOVE OperationalPolicy request failed','ERROR',${exchangeProperty[loopObject]})" />
812                                                 <setHeader headerName="CamelHttpResponseCode">
813                                                         <constant>500</constant>
814                                                 </setHeader>
815                                                 <setBody>
816                                                         <simple>REMOVE Operational policy request FAILED</simple>
817                                                 </setBody>
818                                         </doCatch>
819                                 </doTry>
820                         </route>
821                 </put>
822                 <post
823                                 uri="/v2/loop/create/{loopName}?templateName={templateName}"
824                                 outType="org.onap.clamp.loop.Loop" consumes="application/json"
825                                 produces="application/json">
826                         <route>
827                                 <removeHeaders
828                                                 pattern="*"
829                                                 excludePattern="loopName|templateName" />
830                                 <doTry>
831                                         <to
832                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Create Loop')" />
833                                         <to
834                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'cl','','update')" />
835                                         <to
836                                                         uri="bean:org.onap.clamp.loop.LoopController?method=createLoop(${header.loopName}, ${header.templateName})" />
837                                         <to
838                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
839                                         <doCatch>
840                                                 <exception>java.lang.Exception</exception>
841                                                 <handled>
842                                                         <constant>true</constant>
843                                                 </handled>
844                                                 <to
845                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
846                                                 <log loggingLevel="ERROR"
847                                                          message="CREATE Loop from Template request failed for loop: ${header.loopName}, ${exception.stacktrace}" />
848                                                 <to
849                                                                 uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('CREATE Loop from template request failed','ERROR',${exchangeProperty[loopObject]})" />
850                                                 <setHeader headerName="CamelHttpResponseCode">
851                                                         <constant>500</constant>
852                                                 </setHeader>
853                                                 <setBody>
854                                                         <simple>CREATE Loop from template FAILED</simple>
855                                                 </setBody>
856                                         </doCatch>
857                                 </doTry>
858                         </route>
859                 </post>
860                 <get uri="/v2/dictionary"
861                         outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
862                         <route>
863                                 <removeHeaders pattern="*" />
864                                 <doTry>
865                                         <to
866                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionaries')" />
867                                         <to
868                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
869                                         <to
870                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllDictionaries()" />
871                                         <to
872                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
873                                         <doCatch>
874                                                 <exception>java.lang.Exception</exception>
875                                                 <handled>
876                                                         <constant>true</constant>
877                                                 </handled>
878                                                 <to
879                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
880                                                 <log loggingLevel="ERROR"
881                                                          message="GET Dictionary request failed: ${exception.stacktrace}" />
882                                                 <setHeader headerName="CamelHttpResponseCode">
883                                                         <constant>500</constant>
884                                                 </setHeader>
885                                                 <setBody>
886                                                         <simple>GET Dictionary FAILED</simple>
887                                                 </setBody>
888                                         </doCatch>
889                                 </doTry>
890                         </route>
891                 </get>
892
893                 <get uri="/v2/dictionary/secondary/names"
894                         outType="java.lang.String[]" produces="application/json">
895                         <route>
896                                 <removeHeaders pattern="*" />
897                                 <doTry>
898                                         <to
899                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Secondary Dictionary Level Names')" />
900                                         <to
901                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
902                                         <to
903                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getAllSecondaryLevelDictionaryNames()" />
904                                         <to
905                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
906                                         <doCatch>
907                                                 <exception>java.lang.Exception</exception>
908                                                 <handled>
909                                                         <constant>true</constant>
910                                                 </handled>
911                                                 <to
912                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
913                                                 <log loggingLevel="ERROR"
914                                                          message="GET Dictionary request failed: ${exception.stacktrace}" />
915                                                 <setHeader headerName="CamelHttpResponseCode">
916                                                         <constant>500</constant>
917                                                 </setHeader>
918                                                 <setBody>
919                                                         <simple>GET Dictionary FAILED</simple>
920                                                 </setBody>
921                                         </doCatch>
922                                 </doTry>
923                         </route>
924                 </get>
925                 <get uri="/v2/dictionary/{dictionaryName}"
926                         outType="org.onap.clamp.tosca.Dictionary" produces="application/json">
927                         <route>
928                                 <removeHeaders pattern="*"
929                                         excludePattern="dictionaryName" />
930                                 <doTry>
931                                         <to
932                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Dictionary Elements for a Dictionary Name')" />
933                                         <to
934                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
935                                         <to
936                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=getDictionary(${header.dictionaryName})" />
937                                         <to
938                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
939                                         <doCatch>
940                                                 <exception>java.lang.Exception</exception>
941                                                 <handled>
942                                                         <constant>true</constant>
943                                                 </handled>
944                                                 <to
945                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
946                                                 <log loggingLevel="ERROR"
947                                                          message="GET Dictionary request failed for: ${header.dictionaryName}, ${exception.stacktrace}" />
948                                                 <setHeader headerName="CamelHttpResponseCode">
949                                                         <constant>500</constant>
950                                                 </setHeader>
951                                                 <setBody>
952                                                         <simple>GET Dictionary FAILED</simple>
953                                                 </setBody>
954                                         </doCatch>
955                                 </doTry>
956                         </route>
957                 </get>
958                 <put uri="/v2/dictionary" type="org.onap.clamp.tosca.Dictionary"
959                         outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
960                         produces="application/json">
961                         <route>
962                                 <doTry>
963                                         <to
964                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary')" />
965                                         <to
966                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
967                                         <setProperty propertyName="DictionaryObject">
968                                                 <simple>${body}</simple>
969                                         </setProperty>
970                                         <to
971                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionary(${exchangeProperty[DictionaryObject]})" />
972                                         <to
973                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
974                                         <doCatch>
975                                                 <exception>java.lang.Exception</exception>
976                                                 <handled>
977                                                         <constant>true</constant>
978                                                 </handled>
979                                                 <to
980                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
981                                                 <log loggingLevel="ERROR"
982                                                          message="PUT Dictionary request failed for: ${exception.stacktrace}" />
983                                                 <setHeader headerName="CamelHttpResponseCode">
984                                                         <constant>500</constant>
985                                                 </setHeader>
986                                                 <setBody>
987                                                         <simple>PUT Dictionary FAILED</simple>
988                                                 </setBody>
989                                         </doCatch>
990                                 </doTry>
991                         </route>
992                 </put>
993
994                 <put uri="/v2/dictionary/{name}"
995                         type="org.onap.clamp.tosca.Dictionary"
996                         outType="org.onap.clamp.tosca.Dictionary" consumes="application/json"
997                         produces="application/json">
998                         <route>
999                                 <removeHeaders pattern="*" excludePattern="name" />
1000                                 <doTry>
1001                                         <to
1002                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Add New or Update Dictionary Element')" />
1003                                         <to
1004                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1005                                         <setProperty propertyName="DictionaryObject">
1006                                                 <simple>${body}</simple>
1007                                         </setProperty>
1008                                         <to
1009                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=saveOrUpdateDictionaryElement(${header.name}, ${exchangeProperty[DictionaryObject]})" />
1010                                         <to
1011                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1012                                         <doCatch>
1013                                                 <exception>java.lang.Exception</exception>
1014                                                 <handled>
1015                                                         <constant>true</constant>
1016                                                 </handled>
1017                                                 <to
1018                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1019                                                 <log loggingLevel="ERROR"
1020                                                          message="PUT Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
1021                                                 <setHeader headerName="CamelHttpResponseCode">
1022                                                         <constant>500</constant>
1023                                                 </setHeader>
1024                                                 <setBody>
1025                                                         <simple>PUT Dictionary FAILED</simple>
1026                                                 </setBody>
1027                                         </doCatch>
1028                                 </doTry>
1029                         </route>
1030                 </put>
1031
1032                 <delete uri="/v2/dictionary/{name}" produces="application/json">
1033                         <route>
1034                                 <removeHeaders pattern="*" excludePattern="name" />
1035                                 <doTry>
1036                                         <to
1037                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary')" />
1038                                         <to
1039                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1040                                         <to
1041                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionary(${header.name})" />
1042                                         <to
1043                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1044                                         <doCatch>
1045                                                 <exception>java.lang.Exception</exception>
1046                                                 <handled>
1047                                                         <constant>true</constant>
1048                                                 </handled>
1049                                                 <to
1050                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1051                                                 <log loggingLevel="ERROR"
1052                                                          message="DELETE Dictionary request failed for: ${header.name}, ${exception.stacktrace}" />
1053                                                 <setHeader headerName="CamelHttpResponseCode">
1054                                                         <constant>500</constant>
1055                                                 </setHeader>
1056                                                 <setBody>
1057                                                         <simple>DELETE Dictionary FAILED</simple>
1058                                                 </setBody>
1059                                         </doCatch>
1060                                 </doTry>
1061                         </route>
1062                 </delete>
1063
1064                 <delete uri="/v2/dictionary/{name}/elements/{shortName}"
1065                         produces="application/json">
1066                         <route>
1067                                 <removeHeaders pattern="*"
1068                                         excludePattern="name|shortName" />
1069                                 <doTry>
1070                                         <to
1071                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Delete Dictionary Element')" />
1072                                         <to
1073                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1074                                         <to
1075                                                 uri="bean:org.onap.clamp.tosca.DictionaryService?method=deleteDictionaryElement(${header.name}, ${header.shortName})" />
1076                                         <to
1077                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1078                                         <doCatch>
1079                                                 <exception>java.lang.Exception</exception>
1080                                                 <handled>
1081                                                         <constant>true</constant>
1082                                                 </handled>
1083                                                 <to
1084                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1085                                                 <log loggingLevel="ERROR"
1086                                                          message="DELETE Dictionary element request failed for: ${header.name}, ${exception.stacktrace}" />
1087                                                 <setHeader headerName="CamelHttpResponseCode">
1088                                                         <constant>500</constant>
1089                                                 </setHeader>
1090                                                 <setBody>
1091                                                         <simple>DELETE Dictionary element FAILED</simple>
1092                                                 </setBody>
1093                                         </doCatch>
1094                                 </doTry>
1095                         </route>
1096                 </delete>
1097
1098                 <get uri="/v2/policyToscaModels"
1099                         outType="org.onap.clamp.loop.template.PolicyModel"
1100                         produces="application/json">
1101                         <route>
1102                                 <removeHeaders pattern="*" />
1103                                 <doTry>
1104                                         <to
1105                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Tosca Policy Models')" />
1106                                         <to
1107                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1108                                         <to
1109                                                 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getAllPolicyModels()" />
1110                                         <to
1111                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1112                                         <doCatch>
1113                                                 <exception>java.lang.Exception</exception>
1114                                                 <handled>
1115                                                         <constant>true</constant>
1116                                                 </handled>
1117                                                 <to
1118                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1119                                                 <log loggingLevel="ERROR"
1120                                                          message="GET Policy Models request failed for: ${exception.stacktrace}" />
1121                                                 <setHeader headerName="CamelHttpResponseCode">
1122                                                         <constant>500</constant>
1123                                                 </setHeader>
1124                                                 <setBody>
1125                                                         <simple>GET Policy models FAILED</simple>
1126                                                 </setBody>
1127                                         </doCatch>
1128                                 </doTry>
1129                         </route>
1130                 </get>
1131                 <get uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1132                         outType="org.onap.clamp.loop.template.PolicyModel"
1133                         produces="application/json">
1134                         <route>
1135                                 <removeHeaders pattern="*"
1136                                         excludePattern="policyModelType|policyModelVersion" />
1137                                 <doTry>
1138                                         <to
1139                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model by Name/Version')" />
1140                                         <to
1141                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1142                                         <to
1143                                                 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelByType(${header.policyModelType},${header.policyModelVersion})" />
1144                                         <to
1145                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1146                                         <doCatch>
1147                                                 <exception>java.lang.Exception</exception>
1148                                                 <handled>
1149                                                         <constant>true</constant>
1150                                                 </handled>
1151                                                 <to
1152                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1153                                                 <log loggingLevel="ERROR"
1154                                                          message="GET Policy Model request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1155                                                 <setHeader headerName="CamelHttpResponseCode">
1156                                                         <constant>500</constant>
1157                                                 </setHeader>
1158                                                 <setBody>
1159                                                         <simple>GET Policy model FAILED</simple>
1160                                                 </setBody>
1161                                         </doCatch>
1162                                 </doTry>
1163                         </route>
1164                 </get>
1165                 <get uri="/v2/policyToscaModels/yaml/{policyModelType}/{policyModelVersion}"
1166                         outType="java.lang.String" produces="application/json">
1167                         <route>
1168                                 <removeHeaders pattern="*"
1169                                         excludePattern="policyModelType|policyModelVersion" />
1170                                 <doTry>
1171                                         <to
1172                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET Tosca Policy Model Yaml String by Name/Version')" />
1173                                         <to
1174                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','read')" />
1175                                         <to
1176                                                 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=getPolicyModelTosca(${header.policyModelType},${header.policyModelVersion})" />
1177                                         <to
1178                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1179                                         <doCatch>
1180                                                 <exception>java.lang.Exception</exception>
1181                                                 <handled>
1182                                                         <constant>true</constant>
1183                                                 </handled>
1184                                                 <to
1185                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1186                                                 <log loggingLevel="ERROR"
1187                                                          message="GET Policy Model YAML request failed for type: ${header.policyModelType}, ${exception.stacktrace}" />
1188                                                 <setHeader headerName="CamelHttpResponseCode">
1189                                                         <constant>500</constant>
1190                                                 </setHeader>
1191                                                 <setBody>
1192                                                         <simple>GET Policy model YAML FAILED</simple>
1193                                                 </setBody>
1194                                         </doCatch>
1195                                 </doTry>
1196                         </route>
1197                 </get>
1198
1199                 <post uri="/v2/policyToscaModels"
1200                         type="java.lang.String"
1201                         outType="org.onap.clamp.loop.template.PolicyModel"
1202                         consumes="plain/text" produces="application/json">
1203                         <route>
1204                                 <removeHeaders pattern="*"/>
1205                                 <doTry>
1206                                         <to
1207                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1208                                         <to
1209                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1210                                         <setProperty propertyName="PolicyModelTosca">
1211                                                 <simple>${body}</simple>
1212                                         </setProperty>
1213                                         <to
1214                                                 uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=createNewPolicyModelFromTosca(${exchangeProperty[PolicyModelTosca]})" />
1215                                         <to
1216                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1217                                         <doCatch>
1218                                                 <exception>java.lang.Exception</exception>
1219                                                 <handled>
1220                                                         <constant>true</constant>
1221                                                 </handled>
1222                                                 <to
1223                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1224                                                 <log loggingLevel="ERROR"
1225                                                          message="POST Policy Model YAML request failed: ${exception.stacktrace}" />
1226                                                 <setHeader headerName="CamelHttpResponseCode">
1227                                                         <constant>500</constant>
1228                                                 </setHeader>
1229                                                 <setBody>
1230                                                         <simple>POST Policy model YAML FAILED</simple>
1231                                                 </setBody>
1232                                         </doCatch>
1233                                 </doTry>
1234                         </route>
1235                 </post>
1236                 <put uri="/v2/policyToscaModels/{policyModelType}/{policyModelVersion}"
1237                           type="java.lang.String"
1238                           outType="org.onap.clamp.loop.template.PolicyModel"
1239                           consumes="plain/text" produces="application/json">
1240                         <route>
1241                                 <removeHeaders pattern="*"
1242                                                            excludePattern="policyModelType|policyModelVersion" />
1243                                 <doTry>
1244                                         <to
1245                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Upload New or Update Tosca Policy Model')" />
1246                                         <to
1247                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'tosca','','update')" />
1248                                         <setProperty propertyName="PolicyModelTosca">
1249                                                 <simple>${body}</simple>
1250                                         </setProperty>
1251                                         <to
1252                                                         uri="bean:org.onap.clamp.loop.template.PolicyModelsService?method=updatePolicyModelTosca(${header.policyModelType},${policyModelVersion},${exchangeProperty[PolicyModelTosca]})" />
1253                                         <to
1254                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1255                                         <doCatch>
1256                                                 <exception>java.lang.Exception</exception>
1257                                                 <handled>
1258                                                         <constant>true</constant>
1259                                                 </handled>
1260                                                 <to
1261                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1262                                                 <log loggingLevel="ERROR"
1263                                                          message="MODIFY Policy Model YAML request failed: ${exception.stacktrace}" />
1264                                                 <setHeader headerName="CamelHttpResponseCode">
1265                                                         <constant>500</constant>
1266                                                 </setHeader>
1267                                                 <setBody>
1268                                                         <simple>MODIFY Policy model YAML FAILED</simple>
1269                                                 </setBody>
1270                                         </doCatch>
1271                                 </doTry>
1272                         </route>
1273                 </put>
1274
1275                 <get uri="/v2/templates"
1276                         outType="org.onap.clamp.loop.template.LoopTemplate"
1277                         produces="application/json">
1278                         <route>
1279                                 <removeHeaders pattern="*" />
1280                                 <doTry>
1281                                         <to
1282                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Templates')" />
1283                                         <to
1284                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1285                                         <to
1286                                                 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getAllLoopTemplates()" />
1287                                         <to
1288                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1289                                         <doCatch>
1290                                                 <exception>java.lang.Exception</exception>
1291                                                 <handled>
1292                                                         <constant>true</constant>
1293                                                 </handled>
1294                                                 <to
1295                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1296                                                 <log loggingLevel="ERROR"
1297                                                          message="GET ALL templates request failed: ${exception.stacktrace}" />
1298                                                 <setHeader headerName="CamelHttpResponseCode">
1299                                                         <constant>500</constant>
1300                                                 </setHeader>
1301                                                 <setBody>
1302                                                         <simple>GET ALL templates FAILED</simple>
1303                                                 </setBody>
1304                                         </doCatch>
1305                                 </doTry>
1306                         </route>
1307                 </get>
1308                 <get uri="/v2/templates/{templateName}"
1309                         outType="org.onap.clamp.loop.template.LoopTemplate"
1310                         produces="application/json">
1311                         <route>
1312                                 <removeHeaders pattern="*"
1313                                         excludePattern="templateName" />
1314                                 <doTry>
1315                                         <to
1316                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET a Template by NAME')" />
1317                                         <to
1318                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1319                                         <to
1320                                                 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplate(${header.templateName})" />
1321                                         <to
1322                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1323                                         <doCatch>
1324                                                 <exception>java.lang.Exception</exception>
1325                                                 <handled>
1326                                                         <constant>true</constant>
1327                                                 </handled>
1328                                                 <to
1329                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1330                                                 <log loggingLevel="ERROR"
1331                                                          message="GET Template request failed for template: ${header.templateName},  ${exception.stacktrace}" />
1332                                                 <setHeader headerName="CamelHttpResponseCode">
1333                                                         <constant>500</constant>
1334                                                 </setHeader>
1335                                                 <setBody>
1336                                                         <simple>GET Template FAILED</simple>
1337                                                 </setBody>
1338                                         </doCatch>
1339                                 </doTry>
1340                         </route>
1341                 </get>
1342                 <get uri="/v2/templates/names" outType="java.lang.String[]"
1343                         produces="application/json">
1344                         <route>
1345                                 <removeHeaders pattern="*" />
1346                                 <doTry>
1347                                         <to
1348                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'GET ALL Loop Template Names')" />
1349                                         <to
1350                                                 uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1351                                         <to
1352                                                 uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getLoopTemplateNames()" />
1353                                         <to
1354                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1355                                         <doCatch>
1356                                                 <exception>java.lang.Exception</exception>
1357                                                 <handled>
1358                                                         <constant>true</constant>
1359                                                 </handled>
1360                                                 <to
1361                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1362                                                 <log loggingLevel="ERROR"
1363                                                          message="GET All Template names request failed for template:  ${exception.stacktrace}" />
1364                                                 <setHeader headerName="CamelHttpResponseCode">
1365                                                         <constant>500</constant>
1366                                                 </setHeader>
1367                                                 <setBody>
1368                                                         <simple>GET All Template names FAILED</simple>
1369                                                 </setBody>
1370                                         </doCatch>
1371                                 </doTry>
1372                         </route>
1373                 </get>
1374                 <get uri="/v2/templates/{templateName}/svgRepresentation"
1375                          outType="java.lang.String" produces="application/xml">
1376                         <route>
1377                                 <removeHeaders pattern="*" excludePattern="templateName" />
1378                                 <doTry>
1379                                         <to
1380                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=startLog(*, 'Get SVG Representation for Loop template')" />
1381                                         <to
1382                                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=authorize(*,'template','','read')" />
1383                                         <to
1384                                                         uri="bean:org.onap.clamp.loop.template.LoopTemplatesService?method=getSvgRepresentation(${header.templateName})" />
1385                                         <to
1386                                                         uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
1387                                         <doCatch>
1388                                                 <exception>java.lang.Exception</exception>
1389                                                 <handled>
1390                                                         <constant>true</constant>
1391                                                 </handled>
1392                                                 <to
1393                                                                 uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=errorLog()" />
1394                                                 <log loggingLevel="ERROR"
1395                                                          message="GET SVG for template failed for template: ${header.templateName},  ${exception.stacktrace}" />
1396                                                 <setHeader headerName="CamelHttpResponseCode">
1397                                                         <constant>500</constant>
1398                                                 </setHeader>
1399                                                 <setBody>
1400                                                         <simple>GET SVG for Template FAILED</simple>
1401                                                 </setBody>
1402                                         </doCatch>
1403                                 </doTry>
1404                         </route>
1405                 </get>
1406                 <get uri="/v2/clampInformation" outType="org.onap.clamp.clds.model.ClampInformation"
1407                          produces="application/json">
1408                         <to
1409                                         uri="bean:org.onap.clamp.authorization.AuthorizationController?method=getClampInformation()" />
1410                 </get>
1411         </rest>
1412 </rests>