Class: Apidoco::ApisController

Inherits:
ApplicationController show all
Defined in:
app/controllers/apidoco/apis_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
# File 'app/controllers/apidoco/apis_controller.rb', line 7

def index
  redirect_to api_path(id: @vp.documentations.first.name)
end

#showObject



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