+ getSingleAppInfo(appName) {
+ let deferred = this.$q.defer();
+ var _this12 = this;
+ this.$http.get(this.conf.api.singleAppInfo,
+ {
+ cache: false,
+ params:{'appParam':appName},
+ headers: {
+ 'X-ECOMP-RequestID':this.uuid.generate()
+ }
+ })
+ .then( res => {
+ // If response comes back as a redirected HTML page which IS NOT a success
+ // But don't declare an empty list to be an error.
+ if (res == null || res.data == null || _this12.utilsService.isValidJSON(res.data) == false) {
+ deferred.reject("ApplicationsService::getSingleAppInfo Failed");
+ } else {
+ deferred.resolve(res.data);
+ }
+ })
+ .catch( status => {
+ deferred.reject(status);
+ });
+ return deferred.promise;
+ }
+
+ getSingleAppInfoById(appId) {
+ let deferred = this.$q.defer();
+ var _this14 = this;
+ this.$http.get(this.conf.api.singleAppInfoById,
+ {
+ cache: false,
+ params:{'appParam':appId},
+ headers: {
+ 'X-ECOMP-RequestID':this.uuid.generate()
+ }
+ })
+ .then( res => {
+ // If response comes back as a redirected HTML page which IS NOT a success
+ // But don't declare an empty list to be an error.
+ if (res == null || res.data == null || _this14.utilsService.isValidJSON(res.data) == false) {
+ deferred.reject("ApplicationsService::getSingleAppInfoById Failed");
+ } else {
+ deferred.resolve(res.data);
+ }
+ })
+ .catch( status => {
+ deferred.reject(status);
+ });
+ return deferred.promise;
+ }
+