Class: ActivityNotification::ApidocsController

Inherits:
Object
  • Object
show all
Includes:
Swagger::Blocks
Defined in:
app/controllers/activity_notification/apidocs_controller.rb

Overview

Controller to manage Swagger API references.

Constant Summary collapse

SWAGGERED_CLASSES =
[
  Notification,
  NotificationsApiController,
  Subscription,
  SubscriptionsApiController,
  self
].freeze

Instance Method Summary collapse

Instance Method Details

#indexObject

Returns root JSON of Swagger API references. GET /apidocs



71
72
73
# File 'app/controllers/activity_notification/apidocs_controller.rb', line 71

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