Revision 0aed1d4e
Added by Stephen Benjamin over 8 years ago
app/controllers/api/v2/images_controller.rb | ||
---|---|---|
param :compute_resource_id, String, :desc => N_("ID of compute resource")
|
||
param :architecture_id, String, :desc => N_("ID of architecture")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :user_data, :bool, :desc => N_("Whether or not the image supports user data"), :allow_nil => true
|
||
end
|
||
end
|
||
|
test/functional/api/v2/images_controller_test.rb | ||
---|---|---|
:operatingsystem_id => Operatingsystem.first.id,
|
||
:compute_resource_id => ComputeResource.first.id,
|
||
:architecture_id => Architecture.first.id,
|
||
:user_data => true,
|
||
}
|
||
end
|
||
|
Also available in: Unified diff
fixes #13852 - add user_data to images api docs
(cherry picked from commit 1cd4a22df2b4a34ea8a03150b1bd406494587ed3)