Project

General

Profile

« Previous | Next » 

Revision 2e469342

Added by Joseph Magen over 10 years ago

fixes #3491 - API v2 rabl templates base, main, show for each controller

View differences:

app/views/api/v2/smart_variables/show.json.rabl
object @smart_variable => :smart_variable
object @smart_variable
extends "api/v2/smart_variables/base"
attributes :description, :parameter_type, :default_value, :validator_type, :validator_rule, :override_value_order, :override_values_count,
:puppetclass_id, :puppetclass_name, :created_at, :updated_at
extends "api/v2/smart_variables/main"
node do |smart_variable|
{ :override_values => partial("api/v2/override_values/show", :object => smart_variable.lookup_values) }
{ :override_values => partial("api/v2/override_values/base", :object => smart_variable.lookup_values) }
end

Also available in: Unified diff