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

Instance Method Details

#rootObject

Default action for API root.



25
26
27
# File 'lib/rest_framework/controllers/base.rb', line 25

def root
  api_response({message: "This is the root of your awesome API!"})
end