Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/services/statisticsService.js @ 12477

Last change on this file since 12477 was 12477, checked in by dglaser, 9 years ago

#2388: Created WebApp.Statistics plugin

File size: 629 bytes
Line 
1(function () {
2    var module = appStatisticsPlugin.getAngularModule();
3    var apiUrl = 'api/Statistics/Data/';
4    module.factory('app.statistics.data.service',
5        ['$resource', function ($resource) {
6            return $resource(apiUrl + ':action', { id: '@id' }, {
7                getJobs: { method: 'GET', params: { action: 'GetJobs' }, isArray: true },
8                getJobsByUserId: { method: 'GET', params: { action: 'GetJobsByUserId' }, isArray: true },
9                getTasksByJobId: { method: 'GET', params: { action: 'GetTasksByJobId' }, isArray: true }
10            });
11        }]
12    );
13})();
Note: See TracBrowser for help on using the repository browser.