Class: RedhatAccess::Api::ApiController
- Inherits:
-
RedhatAccess::ApplicationController
- Object
- ApplicationController
- RedhatAccess::ApplicationController
- RedhatAccess::Api::ApiController
- Defined in:
- app/controllers/redhat_access/api/api_controller.rb
Direct Known Subclasses
AttachmentsController, LogsController, TelemetryApiController
Instance Method Summary collapse
Instance Method Details
#api_request? ⇒ 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 |