Skip to content

Commit

Permalink
Fixes #7028 - fixing api docs for orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Strachota committed Aug 27, 2014
1 parent 23b2860 commit 96c101b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/katello/api/v2/organizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
module Katello
class Api::V2::OrganizationsController < ::Api::V2::OrganizationsController

apipie_concern_subst(:a_resource => N_("an organization"), :resource => "organization")

include Api::V2::Rendering
include ForemanTasks::Triggers

Expand Down Expand Up @@ -51,6 +53,7 @@ def show
param :id, :identifier, :desc => N_("organization ID"), :required => true
param :description, String, :desc => N_("description of the organization"), :required => false
param :redhat_repository_url, String, :desc => N_("Redhat CDN url")
param_group :resource, ::Api::V2::TaxonomiesController
def update
if params.key?(:redhat_repository_url)
@organization.redhat_provider.update_attributes!(:repository_url => params[:redhat_repository_url])
Expand All @@ -62,6 +65,7 @@ def update
param :name, String, :desc => N_("name"), :required => true
param :label, String, :desc => N_("unique label")
param :description, String, :desc => N_("description")
param_group :resource, ::Api::V2::TaxonomiesController
def create
super
end
Expand Down

0 comments on commit 96c101b

Please sign in to comment.