Register Clamp API to MSB by RESTFul API. 75/35175/1
authorYuanHu <yuan.hu1@zte.com.cn>
Mon, 12 Mar 2018 10:51:02 +0000 (18:51 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Mon, 12 Mar 2018 10:51:02 +0000 (18:51 +0800)
Register clamp API to MSB while deployed by OOM.
Actual URL of Clamp: http://[CLAMP_IP]:[CLAMP_PORT]/restservices/clds/v1/*
Published URL of MSB: http://[MSB_IP]:[MSB_PORT]/api/clamp/v1/*

Issue-ID: CLAMP-95, OOM-230

Change-Id: Ic82aa5737269b52b1c96e6a2d70353d92b6c64e6
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
boot/msb_vm_init.sh

index 0a087b0..43f3ff9 100644 (file)
@@ -132,3 +132,5 @@ curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "usecaseui-
 
 curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "usecaseui-ui", "version": "v1", "url": "/usecase-ui","path": "/iui/usecaseui","protocol": "UI",  "nodes": [ {"ip": "'$OPENO_IP'","port": "8080"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"
 
+# CLAMP
+curl -X POST -H "Content-Type: application/json" -d '{"serviceName": "clamp", "version": "v1", "url": "/restservices/clds/v1","protocol": "REST", "visualRange":"1", "nodes": [ {"ip": "'$CLAMP_IP'","port": "8080"}]}' "http://$OPENO_IP:10081/api/microservices/v1/services"