Commit b1099dff by DarshanKumar

API Changes

API changes
parent ee3af4a5
......@@ -152,7 +152,7 @@ module.exports = function(grunt) {
'hostnames': ['*'],
'routes': {
'/': 'dist',
'/api': 'http://162.249.6.39:21000/api'
'/api': 'http://162.249.6.50:21000/api'
}
}]
}
......
......@@ -19,7 +19,7 @@
'use strict';
angular.module('dgc.details').factory('DetailsResource', ['$resource', function($resource) {
return $resource('/api/metadata/entities/:id', {}, {
return $resource('/api/atlas/entities/:id', {}, {
get: {
method: 'GET',
transformResponse: function(data) {
......@@ -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
var margin = {
top: 100,
right: 70,
right: 80,
bottom: 30,
left: 70
left: 80
};
width = width - margin.right - margin.left;
height = height - margin.top - margin.bottom;
......
......@@ -19,5 +19,5 @@
'use strict';
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 @@
'use strict';
angular.module('dgc.navigation').factory('NavigationResource', ['$resource', function($resource) {
return $resource('api/metadata/types?type=TRAIT', {}, {
return $resource('api/atlas/types?type=TRAIT', {}, {
get: {
'method': 'GET',
'responseType': 'json',
......
......@@ -67,7 +67,7 @@ angular.module('dgc.search').controller('SearchController', ['$scope', '$locatio
$scope.$watch('currentPage + itemsPerPage', function() {
var begin = (($scope.currentPage - 1) * $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() {
return Math.ceil($scope.resultCount / $scope.itemsPerPage);
};
......
......@@ -19,7 +19,7 @@
'use strict';
angular.module('dgc.search').factory('SearchResource', ['$resource', function($resource) {
return $resource('/api/metadata/discovery/search/', {}, {
return $resource('/api/atlas/discovery/search/', {}, {
search: {
'method': 'GET',
'responseType': 'json',
......
#!/usr/bin/env node
/*
* Licensed to the Apache Software Foundation (ASF) under one
* 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