Skip to content

Commit da017c2

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 da017c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
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

0 commit comments

Comments
 (0)