Revision c980e9a8
Added by Joseph Magen almost 10 years ago
app/controllers/api/v2/hosts_controller.rb | ||
---|---|---|
module V2
|
||
class HostsController < V2::BaseController
|
||
|
||
wrap_parameters Host::Base, :include => (Host::Base.attribute_names + ['image_file', 'is_owned_by', 'overwrite', 'progress_report_id'])
|
||
|
||
include Api::Version2
|
||
#TODO - should TaxonomyScope be here. It wasn't here previously
|
||
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