X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ocd%2Fcli%2Fealt%2Fcmd%2Fadapter%2Fconverter.go;h=9ffefac281441fcfb7f91242bdcdc5b2050aceb3;hb=8695c40afdce738a635e201d9e3f32d52f8d720f;hp=8e64bc893607c855806f5695e1ea8e6d3db7865c;hpb=caf01eef6ab04caccb08847930d2729794784b64;p=ealt-edge.git diff --git a/ocd/cli/ealt/cmd/adapter/converter.go b/ocd/cli/ealt/cmd/adapter/converter.go index 8e64bc8..9ffefac 100644 --- a/ocd/cli/ealt/cmd/adapter/converter.go +++ b/ocd/cli/ealt/cmd/adapter/converter.go @@ -41,6 +41,13 @@ func BuilderRequest(valueArgs []string, command string) error { packageName = strings.TrimSpace(valueArgs[0]) HttpMultiPartPostRequestBuilder(URIString, body, packageName) + case "NewAppInfoCommand": + URIString = common.AppmUri + var body []byte + URIString = common.AppmUri + strings.TrimSpace(valueArgs[0]) + body = jsonEmptyBodyFormat() + HttpGetRequestBuilder(URIString, body) + case "NewAppDeleteCommand": //The Delete Application Package URI //ealtedge/mepm/app_pkgm/v1/app_packages/{{ID}} @@ -66,6 +73,16 @@ func BuilderRequest(valueArgs []string, command string) error { } HttpPostRequestBuilder(URIString, body) + case "NewApplcmInfoCommand": + //appLCM Get Application URI + ///ealtedge/mepm/app_lcm/v1/app_instances/{appInstanceId} + var body []byte + URIString = common.ApplcmUri + strings.TrimSpace(valueArgs[0]) + + //Empty body for Delete Command. + body = jsonEmptyBodyFormat() + HttpGetRequestBuilder(URIString, body) + case "NewApplcmDeleteCommand": //appLCM Delete Application URI ///ealtedge/mepm/app_lcm/v1/app_instances/{appInstanceId}