Sha256: b9a628708ee3be307952e2524f05258bf023592be8bdbe1a695f9c8d43a54c4d

Contents?: true

Size: 829 Bytes

Versions: 10

Compression:

Stored size: 829 Bytes

Contents

/**
 * @ngdoc factory
 * @name  Bastion.host-collections.factory:HostCollection
 *
 * @requires BastionResource
 *
 * @description
 *   Provides a BastionResource for host collections.
 */
angular.module('Bastion.host-collections').factory('HostCollection',
    ['BastionResource', function (BastionResource) {

        return BastionResource('/katello/api/v2/host_collections/:id/:action', {id: '@id'}, {
            get: {method: 'GET', params: {fields: 'full'}},
            update: {method: 'PUT'},
            copy: {method: 'POST', params: {action: 'copy'}},
            removeHosts: {method: 'PUT', params: {action: 'remove_hosts'}},
            addHosts: {method: 'PUT', params: {action: 'add_hosts'}},
            autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}}
        });

    }]
);

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
katello-3.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js