You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/edge/rest/edge-jobs.js

18 lines
632 B

angular.module('portainer.edge').factory('EdgeJobs', EdgeJobsFactory);
function EdgeJobsFactory($resource, API_ENDPOINT_EDGE_JOBS) {
return $resource(
API_ENDPOINT_EDGE_JOBS + '/:id/:action',
{},
{
create: { method: 'POST' },
query: { method: 'GET', isArray: true },
get: { method: 'GET', params: { id: '@id' } },
update: { method: 'PUT', params: { id: '@id' } },
remove: { method: 'DELETE', params: { id: '@id' } },
file: { method: 'GET', params: { id: '@id', action: 'file' } },
tasks: { method: 'GET', isArray: true, params: { id: '@id', action: 'tasks' } },
}
);
}