Class: Api::V1::DashboardController

Inherits:
BaseController show all
Defined in:
app/controllers/api/v1/dashboard_controller.rb

Instance Method Summary collapse

Methods included from Api::Version1

#api_version

Methods inherited from BaseController

#get_resource, #resource_class, #resource_name, #resource_scope

Methods included from Foreman::ThreadSession::Cleaner

#clear_thread, included

Instance Method Details

#indexObject


9
10
11
12
13
14
15
# File 'app/controllers/api/v1/dashboard_controller.rb', line 9

def index
  status = Dashboard.status(params[:search])
  respond_to do |format|
    format.yaml { render :text => status.to_yaml }
    format.json { render :json => status }
  end
end