Sha256: 51af2b5ce55cf03e9471e56f056e47020e5f9f1e6db7452939eb4612b49fcb17
Contents?: true
Size: 810 Bytes
Versions: 90
Compression:
Stored size: 810 Bytes
Contents
module Katello module Concerns module Api::V2::SmartProxiesControllerExtensions module ApiPieExtensions extend ::Apipie::DSL::Concern update_api(:create, :update) do param :smart_proxy, Hash do param :download_policy, String, :required => false, :desc => N_('Download Policy of the capsule, must be one of %s') % SmartProxy::DOWNLOAD_POLICIES.join(', ') end end end extend ActiveSupport::Concern included do include ApiPieExtensions def create @smart_proxy = SmartProxy.new(smart_proxy_params) process_response @smart_proxy.save end def update process_response @smart_proxy.update(smart_proxy_params) end end end end end
Version data entries
90 entries across 90 versions & 1 rubygems