Commit b1099dff by DarshanKumar

API Changes

API changes
parent ee3af4a5
...@@ -152,7 +152,7 @@ module.exports = function(grunt) { ...@@ -152,7 +152,7 @@ module.exports = function(grunt) {
'hostnames': ['*'], 'hostnames': ['*'],
'routes': { 'routes': {
'/': 'dist', '/': 'dist',
'/api': 'http://162.249.6.39:21000/api' '/api': 'http://162.249.6.50:21000/api'
} }
}] }]
} }
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
'use strict'; 'use strict';
angular.module('dgc.details').factory('DetailsResource', ['$resource', function($resource) { angular.module('dgc.details').factory('DetailsResource', ['$resource', function($resource) {
return $resource('/api/metadata/entities/:id', {}, { return $resource('/api/atlas/entities/:id', {}, {
get: { get: {
method: 'GET', method: 'GET',
transformResponse: function(data) { transformResponse: function(data) {
...@@ -31,22 +31,4 @@ angular.module('dgc.details').factory('DetailsResource', ['$resource', function( ...@@ -31,22 +31,4 @@ angular.module('dgc.details').factory('DetailsResource', ['$resource', function(
} }
}); });
//$scope.getSchema= function (tableName) {
//
// $http.get('/api/metadata/lineage/hive/table/'+tableName +'/schema')
// .success(function (data) {
// $scope.iserror1=false;
// $scope.schema= angular.fromJson(data.results.rows);
// // console.log(tableName);
//
//
// })
// .error(function () {
// // alert("Sorry No response");
//
//
//
// });
//}
}]); }]);
...@@ -110,9 +110,9 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco ...@@ -110,9 +110,9 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
var margin = { var margin = {
top: 100, top: 100,
right: 70, right: 80,
bottom: 30, bottom: 30,
left: 70 left: 80
}; };
width = width - margin.right - margin.left; width = width - margin.right - margin.left;
height = height - margin.top - margin.bottom; height = height - margin.top - margin.bottom;
......
...@@ -19,5 +19,5 @@ ...@@ -19,5 +19,5 @@
'use strict'; 'use strict';
angular.module('dgc.lineage').factory('LineageResource', ['$resource', function($resource) { angular.module('dgc.lineage').factory('LineageResource', ['$resource', function($resource) {
return $resource('/api/metadata/lineage/hive/table/:tableName/:type/graph', {}); return $resource('/api/atlas/lineage/hive/table/:tableName/:type/graph', {});
}]); }]);
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
'use strict'; 'use strict';
angular.module('dgc.navigation').factory('NavigationResource', ['$resource', function($resource) { angular.module('dgc.navigation').factory('NavigationResource', ['$resource', function($resource) {
return $resource('api/metadata/types?type=TRAIT', {}, { return $resource('api/atlas/types?type=TRAIT', {}, {
get: { get: {
'method': 'GET', 'method': 'GET',
'responseType': 'json', 'responseType': 'json',
......
...@@ -67,7 +67,7 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio ...@@ -67,7 +67,7 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope.$watch('currentPage + itemsPerPage', function() { $scope.$watch('currentPage + itemsPerPage', function() {
var begin = (($scope.currentPage - 1) * $scope.itemsPerPage), var begin = (($scope.currentPage - 1) * $scope.itemsPerPage),
end = begin + $scope.itemsPerPage; end = begin + $scope.itemsPerPage;
if ($scope.transformedResults)$scope.filteredResults = $scope.transformedResults.slice(begin, end); if ($scope.transformedResults) $scope.filteredResults = $scope.transformedResults.slice(begin, end);
$scope.pageCount = function() { $scope.pageCount = function() {
return Math.ceil($scope.resultCount / $scope.itemsPerPage); return Math.ceil($scope.resultCount / $scope.itemsPerPage);
}; };
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
'use strict'; 'use strict';
angular.module('dgc.search').factory('SearchResource', ['$resource', function($resource) { angular.module('dgc.search').factory('SearchResource', ['$resource', function($resource) {
return $resource('/api/metadata/discovery/search/', {}, { return $resource('/api/atlas/discovery/search/', {}, {
search: { search: {
'method': 'GET', 'method': 'GET',
'responseType': 'json', 'responseType': 'json',
......
#!/usr/bin/env node #!/usr/bin/env node
/* /*
* Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment