Revision 2e469342
Added by Joseph Magen over 10 years ago
app/views/api/v2/puppetclasses/show.json.rabl | ||
---|---|---|
object @puppetclass
|
||
|
||
attributes :id, :name, :created_at, :updated_at
|
||
extends "api/v2/puppetclasses/main"
|
||
|
||
child :environments, :object_root => false do
|
||
attributes :id, :name
|
||
extends "api/v2/environments/base"
|
||
end
|
||
|
||
child :hostgroups, :object_root => false do
|
||
attributes :id, :label
|
||
extends "api/v2/hostgroups/base"
|
||
end
|
||
|
||
node do |puppetclass|
|
Also available in: Unified diff
fixes #3491 - API v2 rabl templates base, main, show for each controller