diff options
author | 2017-10-18 17:34:06 +0800 | |
---|---|---|
committer | 2017-10-18 17:34:06 +0800 | |
commit | 86d17be435aad99cb0e593f55758ad98dc0cc1f0 (patch) | |
tree | 905aa3d1a21136cfc8d08231913b2ef4f97ead8e /huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap | |
parent | 32686c4efae298d7b1785365162b2df3e8afedfc (diff) |
Fix published url for huaweidriver
Change-Id: I3f5a4a6733dc2c262f822970ca556fb4cbd9fbcb
Issue-Id:VFC-542
Signed-off-by: luxin <luxin7@huawei.com>
Diffstat (limited to 'huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap')
2 files changed, 5 insertions, 3 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/SwaggerRoa.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/SwaggerRoa.java index 63e73c97..27a5ae3e 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/SwaggerRoa.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/SwaggerRoa.java @@ -31,18 +31,20 @@ import org.apache.commons.io.IOUtils; * @author * @version VFC 1.0 Oct 24, 2016 */ -@Path("/api/hwvnfm/v1") +@Path("/api/huaweivnfmdriver/v1") @Produces({MediaType.APPLICATION_JSON}) public class SwaggerRoa { + /** * API doc. + * * @param filename * @return * @throws IOException */ @GET @Path("/swagger.json") - public String apidoc() throws IOException{ + public String apidoc() throws IOException { ClassLoader classLoader = getClass().getClassLoader(); return IOUtils.toString(classLoader.getResourceAsStream("swagger.json")); } diff --git a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfRoa.java b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfRoa.java index 35f7ceaa..4867ace7 100644 --- a/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfRoa.java +++ b/huawei/vnfmadapter/VnfmadapterService/service/src/main/java/org/onap/vfc/nfvo/vnfm/svnfm/vnfmadapter/service/rest/VnfRoa.java @@ -51,7 +51,7 @@ import net.sf.json.JSONObject; * @version VFC 1.0 Aug 24, 2016 */ @SuppressWarnings("unchecked") -@Path("/api/hwvnfm/v1") +@Path("/api/huaweivnfmdriver/v1") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) public class VnfRoa { |