summaryrefslogtreecommitdiffstats
path: root/config/dynamic/routes/sdnc-api.route
diff options
context:
space:
mode:
authorPrudence Au <prudence.au@amdocs.com>2018-10-26 15:34:22 +0000
committerGerrit Code Review <gerrit@onap.org>2018-10-26 15:34:22 +0000
commit28b5ce6794f46f196ea7c005b61d25f8b57d69f7 (patch)
tree2d49d87a8e7a71836e62d426a5ad208a289aca6e /config/dynamic/routes/sdnc-api.route
parenta33f302265772b2720245118c864813b596a0ef8 (diff)
parent696b3aab041353afd74e26c0b9a569d0b1b9e254 (diff)
Merge "Adding API Mapping infrastructure"
Diffstat (limited to 'config/dynamic/routes/sdnc-api.route')
-rw-r--r--config/dynamic/routes/sdnc-api.route17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/dynamic/routes/sdnc-api.route b/config/dynamic/routes/sdnc-api.route
new file mode 100644
index 0000000..19bc5ec
--- /dev/null
+++ b/config/dynamic/routes/sdnc-api.route
@@ -0,0 +1,17 @@
+<route xmlns="http://camel.apache.org/schema/spring" trace="true" id="apiMapperRoute">
+ <from uri="direct:startRoutingProcess" />
+ <choice>
+ <when>
+ <simple>${in.body.apiName} == 'VNF-API'</simple>
+ <log message="Processing ${in.body.apiName} by Camel Routing Context"/>
+ <to uri="bean:vnfApiHandler?method=process"/>
+ </when>
+ <when>
+ <simple>${in.body.apiName} == 'GENERIC-RESOURCE-API'</simple>
+ <log message="Processing ${in.body.apiName} by Camel Routing Context"/>
+ <to uri="bean:genericResourceApiHandler?method=process"/>
+ </when>
+ </choice>
+</route>
+
+