Sha256: 4835ee1f95018ed482a7e047c3f933979fab37c741c9fa881f3a75414325331b
Contents?: true
Size: 854 Bytes
Versions: 29
Compression:
Stored size: 854 Bytes
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}; } } }); }] );
Version data entries
29 entries across 29 versions & 1 rubygems