Sha256: 0b844236bb735640d8cf84888e8372d6b921ca445f6b973be49dd4fc801e1f13
Contents?: true
Size: 1.13 KB
Versions: 18
Compression:
Stored size: 1.13 KB
Contents
/** * @ngdoc service * @name Bastion.providers.factory:Package * * @requires BastionResource * * @description * Provides a BastionResource for product or list of providers. */ angular.module('Bastion.packages').factory('Package', ['BastionResource', 'CurrentOrganization', function (BastionResource) { return BastionResource('/katello/api/v2/packages/:id', {'id': '@id'}, { 'autocomplete': {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}}, 'autocompleteName': {method: 'GET', isArray: false, params: {id: 'auto_complete_name'}, transformResponse: function (data) { data = angular.fromJson(data); return {results: data}; } }, 'autocompleteArch': {method: 'GET', isArray: false, params: {id: 'auto_complete_arch'}, transformResponse: function (data) { data = angular.fromJson(data); return {results: data}; } } }); }] );
Version data entries
18 entries across 18 versions & 1 rubygems