Omer Etrog 039151beb9 Add Entites and Alarms to the manu
Change-Id: Ibd2b8cd880053feb4ef036dd8e1f1d7f8129991f
2015-12-21 17:39:10 +02:00

36 lines
714 B
JavaScript

(function () {
'use strict';
angular
.module('horizon.app.core.openstack-service-api')
.factory('horizon.app.core.openstack-service-api.vitrage', vitrageAPI);
vitrageAPI.$inject = [
'horizon.framework.util.http.service',
'horizon.framework.widgets.toast.service'
];
function vitrageAPI(apiService, toastService) {
return {
getTopology: getTopology
};
///////////
// Topology
function getTopology() {
console.log("**** getToplogy test ****");
return apiService.get('/api/nova/keypairs/')
.error(function () {
toastService.add('error', gettext('Unable to get the Vitrage service Topology.'));
});
}
}
}());