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

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js