Class: RedhatAccess::Api::ApiController

Inherits:
RedhatAccess::ApplicationController show all
Defined in:
app/controllers/redhat_access/api/api_controller.rb

Instance Method Summary collapse

Instance Method Details

#api_request?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/controllers/redhat_access/api/api_controller.rb', line 16

def api_request?
  true
end

#http_error_response(msg, status) ⇒ Object



12
13
14
# File 'app/controllers/redhat_access/api/api_controller.rb', line 12

def http_error_response(msg,status)
  render json: { :message => msg }, :status => status
end