Sha256: 83fb0447eea6b859445abd05e2acf1655e8b6e64d575b64bd4c8093e1e861c64
Contents?: true
Size: 1.86 KB
Versions: 1
Compression:
Stored size: 1.86 KB
Contents
/** * Copyright 2013-2014 Red Hat, Inc. * * This software is licensed to you under the GNU General Public * License as published by the Free Software Foundation; either version * 2 of the License (GPLv2) or (at your option) any later version. * There is NO WARRANTY for this software, express or implied, * including the implied warranties of MERCHANTABILITY, * NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should * have received a copy of GPLv2 along with this software; if not, see * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. **/ /** * @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'}, { 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-2.2.2 | engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js |