Class: ActivityNotification::ApidocsController
- Inherits:
-
Object
- Object
- ActivityNotification::ApidocsController
- 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
-
#index ⇒ Object
Returns root JSON of Swagger API references.
Instance Method Details
#index ⇒ Object
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 |