Class: Apidoco::ApisController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Apidoco::ApisController
- Defined in:
- app/controllers/apidoco/apis_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
7 8 9 |
# File 'app/controllers/apidoco/apis_controller.rb', line 7 def index redirect_to api_path(id: @vp.documentations.first.name) end |
#show ⇒ Object
11 12 13 14 |
# File 'app/controllers/apidoco/apis_controller.rb', line 11 def show @documentation = @vp.documentation(params[:id]) @data = @documentation.as_json end |