Module: RESTFramework::BaseControllerMixin
- Included in:
- BaseModelControllerMixin
- Defined in:
- lib/rest_framework/controllers/base.rb
Overview
This module provides the common functionality for any controller mixins, a ‘root` action, and the ability to route arbitrary actions with `@extra_actions`. This is also where `api_response` is defined.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#root ⇒ Object
Default action for API root.
Instance Method Details
#root ⇒ Object
Default action for API root.
24 25 26 |
# File 'lib/rest_framework/controllers/base.rb', line 24 def root api_response({message: "This is the root of your awesome API!"}) end |