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

Version Path
katello-3.0.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-2.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-2.4.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-2.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-2.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js