GUACAMOLE-5: Expose session as a REST resource. Refactor /api/data to /api/session/data.

This commit is contained in:
Michael Jumper committed 2016-07-12 21:23:47 -07:00
1 parent 1aa256b26c
commit c586d1840d
11 files changed
+177 -45

No files matched your search

@@ -58,7 +58,7 @@ angular.module('rest').factory('schemaService', ['$injector',
return $http({
cache : cacheService.schema,
method : 'GET',
url : 'api/data/' + encodeURIComponent(dataSource) + '/schema/userAttributes',
url : 'api/session/data/' + encodeURIComponent(dataSource) + '/schema/userAttributes',
params : httpParameters
});
@@ -92,7 +92,7 @@ angular.module('rest').factory('schemaService', ['$injector',
return $http({
cache : cacheService.schema,
method : 'GET',
url : 'api/data/' + encodeURIComponent(dataSource) + '/schema/connectionAttributes',
url : 'api/session/data/' + encodeURIComponent(dataSource) + '/schema/connectionAttributes',
params : httpParameters
});
@@ -126,7 +126,7 @@ angular.module('rest').factory('schemaService', ['$injector',
return $http({
cache : cacheService.schema,
method : 'GET',
url : 'api/data/' + encodeURIComponent(dataSource) + '/schema/connectionGroupAttributes',
url : 'api/session/data/' + encodeURIComponent(dataSource) + '/schema/connectionGroupAttributes',
params : httpParameters
});
@@ -157,7 +157,7 @@ angular.module('rest').factory('schemaService', ['$injector',
return $http({
cache : cacheService.schema,
method : 'GET',
url : 'api/data/' + encodeURIComponent(dataSource) + '/schema/protocols',
url : 'api/session/data/' + encodeURIComponent(dataSource) + '/schema/protocols',
params : httpParameters
});