xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 1 | <rests xmlns="http://camel.apache.org/schema/spring"> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 2 | <rest > |
| 3 | <get uri="/v1/clds/cldsDetails" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 4 | outType="org.onap.clamp.clds.model.CldsMonitoringDetails" |
| 5 | produces="application/json"> |
| 6 | <to |
sebdet | 6a0c205 | 2018-12-11 12:43:26 +0100 | [diff] [blame] | 7 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getCldsDetails()" /> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 8 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 9 | <get uri="/v1/clds/cldsInfo" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 10 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 15 | <get uri="/v1/healthcheck" produces="application/json"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 16 | <to |
| 17 | uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" /> |
| 18 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 19 | <get uri="/v1/clds/model/bpmn/{modelName}" produces="text/xml"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 20 | <to |
| 21 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" /> |
| 22 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 23 | <get uri="/v1/clds/model/image/{modelName}" produces="text/xml"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 24 | <to |
| 25 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" /> |
| 26 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 27 | <get uri="/v1/clds/model/{modelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 28 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 33 | <put uri="/v1/clds/model/{modelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 34 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 41 | <get uri="/v1/clds/model-names" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 42 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 47 | <put uri="/v1/clds/action/{action}/{modelName}?test={test}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 48 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 53 | <post uri="/v1/clds/dcae/event?test={test}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 54 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 59 | <get uri="/v1/clds/properties" produces="application/json"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 60 | <to |
| 61 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" /> |
| 62 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 63 | <put uri="/v1/clds/deploy/{modelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 64 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 69 | <put uri="/v1/clds/undeploy/{modelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 70 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 79 | <get uri="/v1/cldsTempate/template/bpmn/{templateName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 80 | produces="text/xml"> |
| 81 | <to |
| 82 | uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" /> |
| 83 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 84 | <get uri="/v1/cldsTempate/template/image/{templateName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 85 | produces="text/xml"> |
| 86 | <to |
| 87 | uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" /> |
| 88 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 89 | <get uri="/v1/cldsTempate/template/{templateName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 90 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 95 | <put uri="/v1/cldsTempate/template/{templateName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 96 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 103 | <get uri="/v1/cldsTempate/template-names" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 104 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 111 | <put uri="/v1/tosca/models/{toscaModelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 112 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 117 | <get uri="/v1/tosca/models/policyType/{policyType}" |
xg353y | 1885741 | 2019-02-20 12:45:04 +0100 | [diff] [blame] | 118 | outType="org.onap.clamp.clds.model.CldsToscaModel" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 119 | produces="application/json"> |
| 120 | <to |
| 121 | uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" /> |
| 122 | </get> |
Krysiak Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 123 | <get uri="/v1/tosca/models" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 124 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 129 | <get uri="/v1/tosca/models/{toscaModelName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 130 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 137 | <put uri="/v1/dictionary/{dictionaryName}" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 138 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 145 | <get uri="/v1/dictionary" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 146 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 152 | <put uri="/v1/dictionary/{dictionaryName}/items" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 153 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 160 | <get uri="/v1/dictionary/{dictionaryName}/items" |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 161 | 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 Adam | 5f14c7a | 2019-03-01 15:32:19 +0100 | [diff] [blame^] | 167 | <get uri="/v1/user/getUser" produces="text/plain"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 168 | <to |
| 169 | uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" /> |
| 170 | </get> |
| 171 | </rest> |
xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 172 | </rests> |