summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 19:57:07 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2017-03-13 19:57:07 +0800
commit159ae613c08dcdddbda9efb8dc26634b691c5693 (patch)
tree34c63d6443dd8e064daebb928d633a168adb0093
parent4f4eb055ff1e6d7f35315f0b742e2505ea025549 (diff)
Modify the URI of the Microservice
Change-Id: I22f4859d6f44f5efd32296a7f072adb515f0fa94 Issue-ID: HOLMES-50 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
-rw-r--r--rulemgt-standalone/src/main/assembly/conf/rulemgt.yml2
-rw-r--r--rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
index beb60ae..8ad1f9a 100644
--- a/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
+++ b/rulemgt-standalone/src/main/assembly/conf/rulemgt.yml
@@ -9,7 +9,7 @@ apidescription: ZTE Holmes rule Management rest API
server:
type: simple
- rootPath: '/api/holmes-rulemgt/v1/*'
+ rootPath: '/openoapi/holmes-rule-mgmt/v1/*'
applicationContextPath: /
adminContextPath: /admin
connector:
diff --git a/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java b/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java
index b8158bf..2c2c88d 100644
--- a/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java
+++ b/rulemgt/src/main/java/org/openo/holmes/rulemgt/resources/RuleMgtResources.java
@@ -179,10 +179,10 @@ public class RuleMgtResources {
private ServiceRegisterEntity initServiceEntity() {
ServiceRegisterEntity serviceRegisterEntity = new ServiceRegisterEntity();
- serviceRegisterEntity.setServiceName("holmes-rulemgt");
+ serviceRegisterEntity.setServiceName("holmes-rule-mgmt");
serviceRegisterEntity.setProtocol("REST");
serviceRegisterEntity.setVersion("v1");
- serviceRegisterEntity.setUrl("/api/holmes-rulemgt/v1");
+ serviceRegisterEntity.setUrl("/openoapi/holmes-rule-mgmt/v1");
serviceRegisterEntity.setSingleNode(MicroServiceConfig.getServiceIp(), "9101", 0);
serviceRegisterEntity.setVisualRange("1");
return serviceRegisterEntity;