Sha256: e3cfa08e35e6080eedb76f1fee5d5c78071bb7077c8bb9a48c438a4fcaa34ebf

Contents?: true

Size: 738 Bytes

Versions: 221

Compression:

Stored size: 738 Bytes

Contents

/**
 * @ngdoc factory
 * @name  Bastion.utils.factory:BastionResource
 *
 * @requires $resource
 *
 * @description
 *   Base module that defines the Katello module namespace and includes any thirdparty
 *   modules used by the application.
 */
angular.module('Bastion.utils').factory('BastionResource', ['$resource', function ($resource) {

    return function (url, paramDefaults, actions) {
        var defaultActions;
        defaultActions = {
            queryPaged: {method: 'GET', isArray: false},
            queryUnpaged: {method: 'GET', isArray: false, params: {'full_result': true}}
        };

        actions = angular.extend({}, defaultActions, actions);

        return $resource(url, paramDefaults, actions);
    };

}]);

Version data entries

221 entries across 221 versions & 2 rubygems

Version Path
katello-4.14.2 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.15.0 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.15.0.rc2 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.15.0.rc1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.0 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.0.rc3 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.0.rc2 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.0.rc1.1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.14.0.rc1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.13.1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.13.0 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.12.1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.13.0.rc1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.12.0 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.12.0.rc3 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.12.0.rc2 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.12.0.rc1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.11.1 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js
katello-4.11.0 engines/bastion/app/assets/javascripts/bastion/utils/bastion-resource.factory.js