Revision c980e9a8
Added by Joseph Magen almost 10 years ago
app/controllers/api/v2/compute_resources_controller.rb | ||
---|---|---|
module V2
|
||
class ComputeResourcesController < V2::BaseController
|
||
|
||
wrap_parameters ComputeResource, :include => (ComputeResource.attribute_names + ['tenant', 'image_id', 'managed_ip', 'provider',
|
||
'template', 'templates', 'set_console_password', 'project', 'key_path', 'email', 'zone',
|
||
'display_type', 'ovirt_quota', 'public_key', 'region', 'server', 'datacenter', 'pubkey_hash',
|
||
'nics_attributes', 'volumes_attributes', 'memory'])
|
||
|
||
include Api::Version2
|
||
include Api::TaxonomyScope
|
||
|
Also available in: Unified diff
fixes #5178 - unify API parameters and return values. User creation should not require payload wrapped with 'user' root