blob: d4baa09a9135bd8c33a5277aee3b34fc1f572542 [file] [log] [blame]
xg353y054f1d12018-07-23 16:02:28 +02001<rests xmlns="http://camel.apache.org/schema/spring">
Krysiak Adam5f14c7a2019-03-01 15:32:19 +01002 <rest >
3 <get uri="/v1/clds/cldsDetails"
sebdet86bf8ee2018-09-05 18:07:57 +02004 outType="org.onap.clamp.clds.model.CldsMonitoringDetails"
5 produces="application/json">
6 <to
sebdet6a0c2052018-12-11 12:43:26 +01007 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsDetails()" />
sebdet86bf8ee2018-09-05 18:07:57 +02008 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +01009 <get uri="/v1/clds/cldsInfo"
sebdet86bf8ee2018-09-05 18:07:57 +020010 outType="org.onap.clamp.clds.model.CldsInfo"
11 produces="application/json">
12 <to
13 uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsInfo()" />
14 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010015 <get uri="/v1/healthcheck" produces="application/json">
sebdet86bf8ee2018-09-05 18:07:57 +020016 <to
17 uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" />
18 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010019 <get uri="/v1/clds/model/bpmn/{modelName}" produces="text/xml">
sebdet86bf8ee2018-09-05 18:07:57 +020020 <to
21 uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" />
22 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010023 <get uri="/v1/clds/model/image/{modelName}" produces="text/xml">
sebdet86bf8ee2018-09-05 18:07:57 +020024 <to
25 uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" />
26 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010027 <get uri="/v1/clds/model/{modelName}"
sebdet86bf8ee2018-09-05 18:07:57 +020028 outType="org.onap.clamp.clds.model.CldsModel"
29 produces="application/json">
30 <to
31 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModel(${header.modelName})" />
32 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010033 <put uri="/v1/clds/model/{modelName}"
sebdet86bf8ee2018-09-05 18:07:57 +020034 type="org.onap.clamp.clds.model.CldsModel"
35 consumes="application/json"
36 outType="org.onap.clamp.clds.model.CldsModel"
37 produces="application/json">
38 <to
39 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModel(${header.modelName},${body})" />
40 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010041 <get uri="/v1/clds/model-names"
sebdet86bf8ee2018-09-05 18:07:57 +020042 outType="org.onap.clamp.clds.model.ValueItem"
43 produces="application/json">
44 <to
45 uri="bean:org.onap.clamp.clds.service.CldsService?method=getModelNames()" />
46 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010047 <put uri="/v1/clds/action/{action}/{modelName}?test={test}"
sebdet86bf8ee2018-09-05 18:07:57 +020048 type="org.onap.clamp.clds.model.CldsModel"
49 consumes="application/json" produces="application/json">
50 <to
51 uri="bean:org.onap.clamp.clds.service.CldsService?method=putModelAndProcessAction(${header.action},${header.modelName},${header.test},${body})" />
52 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010053 <post uri="/v1/clds/dcae/event?test={test}"
sebdet86bf8ee2018-09-05 18:07:57 +020054 type="org.onap.clamp.clds.model.DcaeEvent"
55 consumes="application/json" produces="application/json">
56 <to
57 uri="bean:org.onap.clamp.clds.service.CldsService?method=postDcaeEvent(${header.test},${body})" />
58 </post>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010059 <get uri="/v1/clds/properties" produces="application/json">
sebdet86bf8ee2018-09-05 18:07:57 +020060 <to
61 uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" />
62 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010063 <put uri="/v1/clds/deploy/{modelName}"
sebdet86bf8ee2018-09-05 18:07:57 +020064 type="org.onap.clamp.clds.model.CldsModel"
65 consumes="application/json" produces="application/json">
66 <to
67 uri="bean:org.onap.clamp.clds.service.CldsService?method=deployModel(${header.modelName},${body})" />
68 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010069 <put uri="/v1/clds/undeploy/{modelName}"
sebdet86bf8ee2018-09-05 18:07:57 +020070 type="org.onap.clamp.clds.model.CldsModel"
71 consumes="application/json" produces="application/json">
72 <to
73 uri="bean:org.onap.clamp.clds.service.CldsService?method=unDeployModel(${header.modelName},${body})" />
74 </put>
75
76
77
78
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010079 <get uri="/v1/cldsTempate/template/bpmn/{templateName}"
sebdet86bf8ee2018-09-05 18:07:57 +020080 produces="text/xml">
81 <to
82 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" />
83 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010084 <get uri="/v1/cldsTempate/template/image/{templateName}"
sebdet86bf8ee2018-09-05 18:07:57 +020085 produces="text/xml">
86 <to
87 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" />
88 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010089 <get uri="/v1/cldsTempate/template/{templateName}"
sebdet86bf8ee2018-09-05 18:07:57 +020090 outType="org.onap.clamp.clds.model.CldsTemplate"
91 produces="application/json">
92 <to
93 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplate(${header.templateName})" />
94 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +010095 <put uri="/v1/cldsTempate/template/{templateName}"
sebdet86bf8ee2018-09-05 18:07:57 +020096 type="org.onap.clamp.clds.model.CldsTemplate"
97 consumes="application/json"
98 outType="org.onap.clamp.clds.model.CldsTemplate"
99 produces="application/json">
100 <to
101 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=putTemplate(${header.templateName},${body})" />
102 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100103 <get uri="/v1/cldsTempate/template-names"
sebdet86bf8ee2018-09-05 18:07:57 +0200104 outType="org.onap.clamp.clds.model.ValueItem"
105 produces="application/json">
106 <to
107 uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getTemplateNames()" />
108 </get>
109
110
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100111 <put uri="/v1/tosca/models/{toscaModelName}"
sebdet86bf8ee2018-09-05 18:07:57 +0200112 type="org.onap.clamp.clds.model.CldsToscaModel"
113 consumes="application/json" produces="application/json">
114 <to
115 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=parseToscaModelAndSave(${header.toscaModelName},${body})" />
116 </put>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100117 <get uri="/v1/tosca/models/policyType/{policyType}"
xg353y18857412019-02-20 12:45:04 +0100118 outType="org.onap.clamp.clds.model.CldsToscaModel"
sebdet86bf8ee2018-09-05 18:07:57 +0200119 produces="application/json">
120 <to
121 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" />
122 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100123 <get uri="/v1/tosca/models"
sebdet86bf8ee2018-09-05 18:07:57 +0200124 outType="org.onap.clamp.clds.model.CldsToscaModel"
125 produces="application/json">
126 <to
127 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" />
128 </get>
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100129 <get uri="/v1/tosca/models/{toscaModelName}"
sebdet86bf8ee2018-09-05 18:07:57 +0200130 outType="org.onap.clamp.clds.model.CldsToscaModel"
131 produces="application/json">
132 <to
133 uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" />
134 </get>
135
136
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100137 <put uri="/v1/dictionary/{dictionaryName}"
sebdet86bf8ee2018-09-05 18:07:57 +0200138 type="org.onap.clamp.clds.model.CldsDictionary"
139 outType="org.onap.clamp.clds.model.CldsDictionary"
140 consumes="application/json" produces="application/json">
141 <to
142 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" />
143 </put>
144
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100145 <get uri="/v1/dictionary"
sebdet86bf8ee2018-09-05 18:07:57 +0200146 outType="org.onap.clamp.clds.model.CldsDictionary"
147 produces="application/json">
148 <to
149 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" />
150 </get>
151
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100152 <put uri="/v1/dictionary/{dictionaryName}/items"
sebdet86bf8ee2018-09-05 18:07:57 +0200153 type="org.onap.clamp.clds.model.CldsDictionaryItem"
154 outType="org.onap.clamp.clds.model.CldsDictionaryItem"
155 consumes="application/json" produces="application/json">
156 <to
157 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" />
158 </put>
159
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100160 <get uri="/v1/dictionary/{dictionaryName}/items"
sebdet86bf8ee2018-09-05 18:07:57 +0200161 outType="org.onap.clamp.clds.model.CldsDictionary"
162 produces="application/json">
163 <to
164 uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" />
165 </get>
166
Krysiak Adam5f14c7a2019-03-01 15:32:19 +0100167 <get uri="/v1/user/getUser" produces="text/plain">
sebdet86bf8ee2018-09-05 18:07:57 +0200168 <to
169 uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" />
170 </get>
171 </rest>
xg353y054f1d12018-07-23 16:02:28 +0200172</rests>