Sha256: 8cf5476e15869f0769cf3da3795943b5363be9b9b6369d699ffbf699b79fa53d
Contents?: true
Size: 609 Bytes
Versions: 4
Compression:
Stored size: 609 Bytes
Contents
class StoragePoolsController < ApplicationController respond_to :json def index end def list data = { :start => params[:start].to_i - 1, :limit => params[:limit] } strage_pools = DcmgrResource::StoragePool.list(data) respond_with(strage_pools[0], :to => [:json]) end def show storage_pool_id = params[:id] detail = DcmgrResource::StoragePool.show(storage_pool_id) respond_with(detail,:to => [:json]) end def show_storage_pools storage_pools = DcmgrResource::StoragePool.list respond_with(storage_pools[0],:to => [:json]) end end
Version data entries
4 entries across 4 versions & 1 rubygems