xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 1 | <rests xmlns="http://camel.apache.org/schema/spring"> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 2 | <rest> |
| 3 | <get uri="/clds/cldsDetails" |
| 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> |
| 9 | <get uri="/clds/cldsInfo" |
| 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> |
| 15 | <get uri="/healthcheck" produces="application/json"> |
| 16 | <to |
| 17 | uri="bean:org.onap.clamp.clds.service.CldsHealthcheckService?method=gethealthcheck()" /> |
| 18 | </get> |
| 19 | <get uri="/clds/model/bpmn/{modelName}" produces="text/xml"> |
| 20 | <to |
| 21 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getBpmnXml(${header.modelName})" /> |
| 22 | </get> |
| 23 | <get uri="/clds/model/image/{modelName}" produces="text/xml"> |
| 24 | <to |
| 25 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getImageXml(${header.modelName})" /> |
| 26 | </get> |
| 27 | <get uri="/clds/model/{modelName}" |
| 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> |
| 33 | <put uri="/clds/model/{modelName}" |
| 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> |
| 41 | <get uri="/clds/model-names" |
| 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> |
| 47 | <put uri="/clds/action/{action}/{modelName}?test={test}" |
| 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> |
| 53 | <post uri="/clds/dcae/event?test={test}" |
| 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> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 59 | <get uri="/clds/properties" produces="application/json"> |
| 60 | <to |
| 61 | uri="bean:org.onap.clamp.clds.service.CldsService?method=getSdcProperties()" /> |
| 62 | </get> |
sebdet | 86bf8ee | 2018-09-05 18:07:57 +0200 | [diff] [blame] | 63 | <put uri="/clds/deploy/{modelName}" |
| 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> |
| 69 | <put uri="/clds/undeploy/{modelName}" |
| 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 | |
| 79 | <get uri="/cldsTempate/template/bpmn/{templateName}" |
| 80 | produces="text/xml"> |
| 81 | <to |
| 82 | uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getBpmnTemplate(${header.templateName})" /> |
| 83 | </get> |
| 84 | <get uri="/cldsTempate/template/image/{templateName}" |
| 85 | produces="text/xml"> |
| 86 | <to |
| 87 | uri="bean:org.onap.clamp.clds.service.CldsTemplateService?method=getImageXml(${header.templateName})" /> |
| 88 | </get> |
| 89 | <get uri="/cldsTempate/template/{templateName}" |
| 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> |
| 95 | <put uri="/cldsTempate/template/{templateName}" |
| 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> |
| 103 | <get uri="/cldsTempate/template-names" |
| 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 | |
| 111 | <put uri="/tosca/models/{toscaModelName}" |
| 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> |
| 117 | <get uri="/tosca/models/policyType/{policyType}" |
| 118 | produces="application/json"> |
| 119 | <to |
| 120 | uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModelsByPolicyType(${header.policyType})" /> |
| 121 | </get> |
| 122 | <get uri="/tosca/models" |
| 123 | outType="org.onap.clamp.clds.model.CldsToscaModel" |
| 124 | produces="application/json"> |
| 125 | <to |
| 126 | uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getAllToscaModels()" /> |
| 127 | </get> |
| 128 | <get uri="/tosca/models/{toscaModelName}" |
| 129 | outType="org.onap.clamp.clds.model.CldsToscaModel" |
| 130 | produces="application/json"> |
| 131 | <to |
| 132 | uri="bean:org.onap.clamp.clds.service.CldsToscaService?method=getToscaModel(${header.toscaModelName})" /> |
| 133 | </get> |
| 134 | |
| 135 | |
| 136 | <put uri="/dictionary/{dictionaryName}" |
| 137 | type="org.onap.clamp.clds.model.CldsDictionary" |
| 138 | outType="org.onap.clamp.clds.model.CldsDictionary" |
| 139 | consumes="application/json" produces="application/json"> |
| 140 | <to |
| 141 | uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionary(${header.dictionaryName},${body})" /> |
| 142 | </put> |
| 143 | |
| 144 | <get uri="/dictionary" |
| 145 | outType="org.onap.clamp.clds.model.CldsDictionary" |
| 146 | produces="application/json"> |
| 147 | <to |
| 148 | uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getAllDictionaryNames()" /> |
| 149 | </get> |
| 150 | |
| 151 | <put uri="/dictionary/{dictionaryName}/items" |
| 152 | type="org.onap.clamp.clds.model.CldsDictionaryItem" |
| 153 | outType="org.onap.clamp.clds.model.CldsDictionaryItem" |
| 154 | consumes="application/json" produces="application/json"> |
| 155 | <to |
| 156 | uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=createOrUpdateDictionaryElements(${header.dictionaryName},${body})" /> |
| 157 | </put> |
| 158 | |
| 159 | <get uri="/dictionary/{dictionaryName}/items" |
| 160 | outType="org.onap.clamp.clds.model.CldsDictionary" |
| 161 | produces="application/json"> |
| 162 | <to |
| 163 | uri="bean:org.onap.clamp.clds.service.CldsDictionaryService?method=getDictionaryElementsByName(${header.dictionaryName})" /> |
| 164 | </get> |
| 165 | |
| 166 | <get uri="/user/getUser" produces="text/plain"> |
| 167 | <to |
| 168 | uri="bean:org.onap.clamp.clds.service.UserService?method=getUser()" /> |
| 169 | </get> |
| 170 | </rest> |
xg353y | 054f1d1 | 2018-07-23 16:02:28 +0200 | [diff] [blame] | 171 | </rests> |