Sha256: dfd3956ae786ed188269c21d01ec47f7302bfdf4041b1be35149b1e572065c19
Contents?: true
Size: 912 Bytes
Versions: 134
Compression:
Stored size: 912 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', 'CurrentOrganization', function (BastionResource, CurrentOrganization) { return BastionResource('katello/api/v2/host_collections/:id/:action', {id: '@id', 'organization_id': CurrentOrganization}, { 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
134 entries across 134 versions & 1 rubygems