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
10 11 12 |
# File 'app/controllers/apidoco/apis_controller.rb', line 10 def index redirect_to api_path(id: @vp.documentations.first.name) end |
#show ⇒ Object
14 15 16 17 |
# File 'app/controllers/apidoco/apis_controller.rb', line 14 def show @documentation = @vp.documentation(params[:id]) @data = @documentation.as_json end |