Project

General

Profile

« Previous | Next » 

Revision 2656873b

Added by Martin Bacovsky almost 10 years ago

Refs #4478 - API doc strings marked for translation

View differences:

app/controllers/api/v2/compute_attributes_controller.rb
end
end
api :POST, "/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes", "Create a compute attribute"
api :POST, "/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes", "Create a compute attribute"
api :POST, "/compute_resources/:compute_resource_id/compute_attributes", "Create a compute attribute"
api :POST, "/compute_profiles/:compute_profile_id/compute_attributes", "Create a compute attribute"
api :POST, "/compute_attributes/", "Create a compute attribute."
api :POST, "/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes", N_("Create a compute attributes set")
api :POST, "/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes", N_("Create a compute attributes set")
api :POST, "/compute_resources/:compute_resource_id/compute_attributes", N_("Create a compute attributes set")
api :POST, "/compute_profiles/:compute_profile_id/compute_attributes", N_("Create a compute attributes set")
api :POST, "/compute_attributes/", N_("Create a compute attributes set")
param :compute_profile_id, :identifier, :required => true
param :compute_resource_id, :identifier, :required => true
param_group :compute_attribute, :as => :create
......
render :json => @compute_attribute.to_json
end
api :PUT, "/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id", "Update a compute attribute"
api :PUT, "/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id", "Update a compute attribute"
api :PUT, "/compute_resources/:compute_resource_id/compute_attributes/:id", "Update a compute attribute"
api :PUT, "/compute_profiles/:compute_profile_id/compute_attributes/:id", "Update a compute attribute"
api :PUT, "/compute_attributes/:id", "Update a compute attribute."
api :PUT, "/compute_resources/:compute_resource_id/compute_profiles/:compute_profile_id/compute_attributes/:id", N_("Update a compute attributes set")
api :PUT, "/compute_profiles/:compute_profile_id/compute_resources/:compute_resource_id/compute_attributes/:id", N_("Update a compute attributes set")
api :PUT, "/compute_resources/:compute_resource_id/compute_attributes/:id", N_("Update a compute attributes set")
api :PUT, "/compute_profiles/:compute_profile_id/compute_attributes/:id", N_("Update a compute attributes set")
api :PUT, "/compute_attributes/:id", N_("Update a compute attributes set")
param :compute_profile_id, :identifier, :required => false
param :compute_resource_id, :identifier, :required => false

Also available in: Unified diff