Sha256: ea57359e55480657e6ae2f2caf52c085183f99b5b5c3fc30e39f3aa3b0a3df1e

Contents?: true

Size: 1.4 KB

Versions: 201

Compression:

Stored size: 1.4 KB

Contents

/**
 * @ngdoc service
 * @name  Bastion.subscriptions.factory:Subscription
 *
 * @requires BastionResource
 * @requires CurrentOrganization
 *
 * @description
 *   Provides a BastionResource for a subscription or list of subscriptions
 */
angular.module('Bastion.subscriptions').factory('Subscription', ['BastionResource', 'CurrentOrganization',

    function (BastionResource, CurrentOrganization) {
        return BastionResource('katello/api/v2/organizations/:org/subscriptions/:id/:action',
            {org: CurrentOrganization, id: '@id'},
            {
                autocomplete: {method: 'GET', isArray: true, params: {id: 'auto_complete_search'}},
                deleteManifest: {
                    method: 'POST',
                    url: 'katello/api/v2/organizations/:org/subscriptions/delete_manifest',
                    params: {'org': CurrentOrganization}
                },

                refreshManifest: {
                    method: 'PUT',
                    url: 'katello/api/v2/organizations/:org/subscriptions/refresh_manifest',
                    params: {'org': CurrentOrganization}
                },

                manifestHistory: {
                    method: 'GET',
                    url: 'katello/api/v2/organizations/:org/subscriptions/:action',
                    params: {action: 'manifest_history'},
                    isArray: true
                }
            });
    }]
);

Version data entries

201 entries across 201 versions & 1 rubygems

Version Path
katello-4.7.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.7.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.7.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.7.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.7.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.7.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.4.2.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.4.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.6.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.5.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.5.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js
katello-4.5.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js