Sha256: 8cef72f7e55fcb69a314627bbf408a3663c501740b0521b6bedbc75fc26b2fc1

Contents?: true

Size: 560 Bytes

Versions: 2

Compression:

Stored size: 560 Bytes

Contents

class ImagesController < ApplicationController
  respond_to :json
  
  def index
  end
  
  # images/show/1.json
  def show
    image_id = params[:id]
    detail = DcmgrResource::Image.show(image_id)
    respond_with(detail,:to => [:json])
  end

    
  def list
    data = {
      :start => params[:start].to_i - 1,
      :limit => params[:limit]
    }
    image = DcmgrResource::Image.list(data)
    respond_with(image[0],:to => [:json])
  end
  
  def total
   total_resource = DcmgrResource::Image.total_resource
   render :json => total_resource
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
wakame-vdc-webui-10.12.0 app/controllers/images_controller.rb
wakame-vdc-webui-10.11.0 app/controllers/images_controller.rb