Skip to content

Commit

Permalink
No org id is necessary for show scc account
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernhard committed Sep 20, 2023
1 parent d5d3a59 commit 58fa641
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/controllers/api/v2/scc_accounts_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ def index

api :GET, '/scc_accounts/:id/', N_('Show scc_account')
param :id, :identifier_dottable, :required => true
param :organization_id, :identifier, :required => true
def show; end

def_param_group :scc_account do
param :scc_account, Hash, :required => true, :action_aware => true do
param :organization_id, :identifier, :required => true
param :name, String, :required => true, :desc => N_('Name of the scc_account')
param :login, String, :required => true, :desc => N_('Login id of scc_account')
param :password, String, :required => true, :desc => N_('Password of scc_account')
Expand All @@ -49,6 +47,7 @@ def show; end

api :POST, '/scc_accounts/', N_('Create an scc_account')
param_group :scc_account, :as => :create
param :organization_id, :identifier, :required => true
def create
@scc_account = resource_class.new(scc_account_params)
process_response @scc_account.save_with_logic!
Expand Down

0 comments on commit 58fa641

Please sign in to comment.