Skip to content

Commit c641b48

Browse files
committed
Fixes #25142 - fix extending module_streams api docs
`update_api` is only usable from within a concern. When extending an API inside controller that's coming from concern, `apipie_update_params` should be used instead. Also, there has been an issue on apipie side, that prevented merging top-level params (see Apipie/apipie-rails#642). Both changes are needed in order for this issue to be resolved.
1 parent a9383fb commit c641b48

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/controllers/katello/api/v2/module_streams_controller.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class Api::V2::ModuleStreamsController < Api::V2::ApiController
66

77
before_action :check_params, :only => :index
88

9-
update_api(:index) do
9+
# updating params inherited from Katello::Concerns::Api::V2::RepositoryContentController
10+
apipie_update_params([:index]) do
1011
param :host_ids, Array, :desc => N_("List of host id to list available module streams for")
1112
param :name_stream_only, :boolean, :desc => N_("Return name and stream information only)")
1213
end

katello.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Gem::Specification.new do |gem|
3333

3434
gem.add_dependency "qpid_messaging"
3535
gem.add_dependency "gettext_i18n_rails"
36-
gem.add_dependency "apipie-rails", ">= 0.5.4"
36+
gem.add_dependency "apipie-rails", ">= 0.5.14"
3737

3838
# Pulp
3939
gem.add_dependency "runcible", ">= 2.9.0", "< 3.0.0"

0 commit comments

Comments
 (0)