Class: Jsapi::Controller::Base
- Inherits:
-
ActionController::API
- Object
- ActionController::API
- Jsapi::Controller::Base
- Defined in:
- lib/jsapi/controller/base.rb
Overview
The base API controller class.
class FooController < Jsapi::Controller::Base
api_operation do
response type: 'string'
end
def index
api_operation { 'Hello world' }
end
end
Method Summary
Methods included from Methods
#api_definitions, #api_operation, #api_operation!, #api_params, #api_response