Sha256: c472cd0640bb426a194a451c6494131c6677a5f32a1da26fb634159c4243b6e6

Contents?: true

Size: 846 Bytes

Versions: 8

Compression:

Stored size: 846 Bytes

Contents

module Katello
  class Api::V2::SrpmsController < Api::V2::ApiController
    apipie_concern_subst(:a_resource => N_("a source repository"), :resource => "srpms")
    include Katello::Concerns::Api::V2::RepositoryContentController

    api :GET, "/srpms", N_("List srpms")
    param :organization_id, :number, :desc => N_("Organization identifier")
    param :repository_id, :number, :desc => N_("Repository identifier")
    param :environment_id, :number, :desc => N_("Environment identifier")
    param :content_view_version_id, :number, :desc => N_("Content View Version identifier")
    param_group :search, Api::V2::ApiController
    def index
      super
    end

    def available_for_content_view_version(version)
      version.available_packages
    end

    def default_sort
      lambda { |query| query.default_sort }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
katello-3.13.4 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.3 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.2 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.1 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.0 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.0.rc2.1 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.0.rc2 app/controllers/katello/api/v2/srpms_controller.rb
katello-3.13.0.rc1 app/controllers/katello/api/v2/srpms_controller.rb