Class: Symphonia::ApiController

Inherits:
ApplicationController show all
Includes:
Swagger::Blocks
Defined in:
app/controllers/symphonia/api_controller.rb

Constant Summary collapse

SWAGGERED_CLASSES =

A list of all classes that have swagger_* declarations.

[
  UsersController,
  User,
  Swagger::ErrorModel,
  self
]

Instance Method Summary collapse

Methods included from ControllerExtensions

#admin_require, #authorize, #back_url, #current_user, #current_user_session, #handle_unverified_request, #login_require, #menu_item, #redirect_back_or_default, #redirect_to_referer_or, #render_403, #render_404, #render_api_head, #render_api_ok, #set_default_locale, #set_locale, #store_location

Instance Method Details

#indexObject



60
61
62
# File 'app/controllers/symphonia/api_controller.rb', line 60

def index
  render json: ::Swagger::Blocks.build_root_json(SWAGGERED_CLASSES)
end