app/controllers/openstack/images_controller.rb
##
# POST /openstack/images
# Create a new image using a file provided by the user making the request
#
POST /openstack/images
Create a new image using a file provided by the user making the request
POST / openstack / images Create a new image using a file provided by the user making the request
def create
    json = JSON.parse(params[:json])
    isPublic = "True"
    if json["public"] != "true"
      isPublic = "False"
    end
    json_respond( 
      image().upload_image_from_file(
        json["name"], json["disk_format"],
        json["container_format"], json["minDisk"],
        json["minRam"], isPublic, params[:image]
      )
    )
  end
def create json = JSON . parse ( params [ :json ] ) isPublic = "True" if json [ "public" ] != "true" isPublic = "False" end json_respond ( image ( ) . upload_image_from_file ( json [ "name" ] , json [ "disk_format" ] , json [ "container_format" ] , json [ "minDisk" ] , json [ "minRam" ] , isPublic , params [ :image ] ) ) end
POST /openstack/images
Create a new image using a file provided by the user making the request
POST / openstack / images Create a new image using a file provided by the user making the request