Sha256: 3bf4a9f572db0377887457cbbd96ba287a934abd1182fbe03fc38043c06beda8
Contents?: true
Size: 949 Bytes
Versions: 9
Compression:
Stored size: 949 Bytes
Contents
/** * @ngdoc service * @name Bastion.content-hosts.factory:ContentHostErratum * * @requires BastionResource * * @description * Provides a BastionResource for the errata of a single content host */ angular.module('Bastion.content-hosts').factory('ContentHostErratum', ['BastionResource', function (BastionResource) { return BastionResource('/katello/api/v2/systems/:id/errata/:errata_id/:action', {id: '@uuid'}, { get: {method: 'GET', isArray: false, transformResponse: function (data) { data = angular.fromJson(data); angular.forEach(data.results, function (errata) { errata.unselectable = !errata.installable; }); return data; }}, autocomplete: {method: 'GET', isArray: true, params: {action: 'auto_complete_search'}}, apply: {method: 'PUT', params: {action: 'apply'}} }); }] );
Version data entries
9 entries across 9 versions & 1 rubygems