Skip to content

Commit

Permalink
Refs #37989 - Pluralize api docs endpoint and other changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sjha4 committed Nov 19, 2024
1 parent ea1b911 commit e6ec736
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/controllers/katello/api/v2/flatpak_remotes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class Api::V2::FlatpakRemotesController < Katello::Api::V2::ApiController
api :GET, "/flatpak_remotes", N_("List flatpak remotes")
param :organization_id, :number, :desc => N_("organization identifier"), :required => false
param :name, String, :desc => N_("Name of the flatpak remote"), :required => false
param :label, String, :desc => N_("Label of the flatpak remote"), :required => false
param_group :search, Api::V2::ApiController
add_scoped_search_description_for(FlatpakRemote)
def index
Expand All @@ -40,7 +39,7 @@ def show
respond :resource => @flatpak_remote
end

api :POST, "/flatpak_remote", N_("Create a flatpak remote")
api :POST, "/flatpak_remotes", N_("Create a flatpak remote")
param :name, String, :desc => N_("name"), :required => true
param :url, String, :desc => N_("url"), :required => true
param :organization_id, :number, :desc => N_("organization identifier"), :required => true
Expand All @@ -67,7 +66,7 @@ def destroy
@flatpak_remote.destroy
end

api :POST, "/flatpak_remote/:id/scan", N_("Scan a flatpak remote")
api :POST, "/flatpak_remotes/:id/scan", N_("Scan a flatpak remote")
param :id, :number, :desc => N_("Flatpak remote numeric identifier"), :required => true
def scan
task = async_task(::Actions::Katello::Flatpak::ScanRemote, @flatpak_remote)
Expand Down

0 comments on commit e6ec736

Please sign in to comment.