/* global ngDefine: false */
ngDefine('cockpit.resources', function(module) {
  'use strict';
  var Resource = [ '$resource', 'Uri', function ($resource, Uri) {

    return $resource(Uri.appUri('engine://engine/:engine/job-definition/:id/:action'), { id: '@id' }, {
      query: { method: 'POST', isArray: true},
      count: { method: 'POST', isArray: false, params: { id: 'count' }}
    });
  }];

  module.factory('JobDefinitionResource', Resource);

});

@@ -384,16 +384,85 @@
 ount' %7D%7D
+,%0D%0A      setRetries: %7B method: 'PUT', params: %7B'action': 'retries'%7D %7D
 %0D%0A    %7D)

add plugin extension point in jobDef table