Change the API Path 47/10547/1
authorGuangrong Fu <fu.guangrong@zte.com.cn>
Wed, 6 Sep 2017 09:55:04 +0000 (17:55 +0800)
committerGuangrong Fu <fu.guangrong@zte.com.cn>
Wed, 6 Sep 2017 09:55:04 +0000 (17:55 +0800)
Change the API path from onapapi to api

Change-Id: Ie4ea49e2f9531044399a3d98513d6f96ee866c98
Issue-ID: HOLMES-39
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
dmaap-dsa-standalone/src/main/assembly/conf/dmaap-dsa.yml
dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaap/DmaapDsaActiveApp.java

index 633309b..08ac3d2 100644 (file)
@@ -9,7 +9,7 @@ apidescription: ZTE Holmes Data Source Adaptor RESTful APIs
 
 server:
   type: simple
-  rootPath:  '/onapapi/holmes-dmaap-dsa/v1/*'
+  rootPath:  '/api/holmes-dmaap-dsa/v1/*'
   applicationContextPath: /
   adminContextPath: /admin
   connector:
index 50e7fc4..ab1e36b 100644 (file)
@@ -46,7 +46,7 @@ public class DmaapDsaActiveApp  extends IOCApplication<DmaapDsaConfig> {
         serviceRegisterEntity.setServiceName("holmes-dmaap-dsa");\r
         serviceRegisterEntity.setProtocol("REST");\r
         serviceRegisterEntity.setVersion("v1");\r
-        serviceRegisterEntity.setUrl("/onapapi/holmes-dmaap-dsa/v1/");\r
+        serviceRegisterEntity.setUrl("/api/holmes-dmaap-dsa/v1/");\r
         serviceRegisterEntity.setSingleNode(MicroServiceConfig.getServiceIp(), "9103", 0);\r
         serviceRegisterEntity.setVisualRange("1|0");\r
         return serviceRegisterEntity;\r