airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject svn commit: r1524608 - /airavata/sandbox/gsoc2013/app/scripts/registryAPI.js
Date Thu, 19 Sep 2013 01:07:28 GMT
Author: smarru
Date: Thu Sep 19 01:07:28 2013
New Revision: 1524608

URL: http://svn.apache.org/r1524608
Log:
commiting the gsoc code of accing workflow for AIRAVATA-912

Modified:
    airavata/sandbox/gsoc2013/app/scripts/registryAPI.js

Modified: airavata/sandbox/gsoc2013/app/scripts/registryAPI.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/gsoc2013/app/scripts/registryAPI.js?rev=1524608&r1=1524607&r2=1524608&view=diff
==============================================================================
--- airavata/sandbox/gsoc2013/app/scripts/registryAPI.js (original)
+++ airavata/sandbox/gsoc2013/app/scripts/registryAPI.js Thu Sep 19 01:07:28 2013
@@ -194,7 +194,7 @@ var optionalBasicHeaders = {"Authorizati
 var formBasicHeaders = {"Authorization": "Basic YWRtaW46YWRtaW4=",
     "Accept": "*/*", "Content-Type": "application/x-www-form-urlencoded"};
 
-var baseURL = {"BASE_RES_PATH": "/airavata-registry/api"};
+var baseURL = {"BASE_RES_PATH": "/airavata/services/registry"};
 
 var type = {get: "GET", post: "POST", delete: "DELETE"};
 
@@ -2236,15 +2236,16 @@ UserWorkflowRegistry.prototype.updateWor
 UserWorkflowRegistry.prototype.getWorkflowGraphXML = function (workflowName) {
     var url, data, res;
     url = this.userWorkflowResourcePath + userWFConstants.GET_WORKFLOWGRAPH;
-    data = {workflowName: workflowName};
-    res = sendAndReceive(url, optionalBasicHeaders, type.get, data, null);
+    data = {workflowName: workflowName, isJson:"true"};
+    res = sendAndReceive(url, airavataBasicHeaders, type.get, data, null);
     return res.responseText;
 };
 
 UserWorkflowRegistry.prototype.getWorkflows = function () {
-    var url, res;
+    var url, res, data;
+    data = {isJson:"true"}
     url = this.userWorkflowResourcePath + userWFConstants.GET_WORKFLOWS;
-    res = sendAndReceive(url, optionalBasicHeaders, type.get, null, null);
+    res = sendAndReceive(url, airavataBasicHeaders, type.get, data, null);
     return res.responseJSON;
 };
 



Mime
View raw message