summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 19:58:42 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 19:58:42 +0800
commitb8e477af70a3d28cd97dc7077fd6d5278aa27a22 (patch)
treeb173f0c2bd0f2a89e8387affc56f5cd255b4fc75
parentd2e00336e824c6fe34d33f2e7b8f18f956e1cdf8 (diff)
Modify the URI of the Microservice
Change-Id: Ib8931ab80267073d51df1c5a8d1976e9568a8852 Issue-ID: HOLMES-50 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--engine-d-standalone/src/main/assembly/conf/engine-d.yml2
-rw-r--r--engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/engine-d-standalone/src/main/assembly/conf/engine-d.yml b/engine-d-standalone/src/main/assembly/conf/engine-d.yml
index 045c276..c16bf71 100644
--- a/engine-d-standalone/src/main/assembly/conf/engine-d.yml
+++ b/engine-d-standalone/src/main/assembly/conf/engine-d.yml
@@ -15,7 +15,7 @@
#
server:
type: simple
- rootPath: '/api/holmes-engine/v1/*'
+ rootPath: '/openoapi/holmes-engine-mgmt/v1/*'
applicationContextPath: /
adminContextPath: /admin
connector:
diff --git a/engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java b/engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java
index 0025695..194546b 100644
--- a/engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java
+++ b/engine-d/src/main/java/org/openo/holmes/engine/resources/EngineResources.java
@@ -132,10 +132,10 @@ public class EngineResources {
private ServiceRegisterEntity initServiceEntity() {
ServiceRegisterEntity serviceRegisterEntity = new ServiceRegisterEntity();
- serviceRegisterEntity.setServiceName("holmes-engine");
+ serviceRegisterEntity.setServiceName("holmes-engine-mgmt");
serviceRegisterEntity.setProtocol("REST");
serviceRegisterEntity.setVersion("v1");
- serviceRegisterEntity.setUrl("/api/holmes-engine/v1");
+ serviceRegisterEntity.setUrl("/openoapi/holmes-engine-mgmt/v1");
serviceRegisterEntity.setSingleNode(MicroServiceConfig.getServiceIp(), "9102", 0);
serviceRegisterEntity.setVisualRange("1|0");
return serviceRegisterEntity;