Class: EasyApiDoc::ApiController

Inherits:
ApplicationController show all
Defined in:
app/controllers/easy_api_doc/api_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
# File 'app/controllers/easy_api_doc/api_controller.rb', line 4

def index
  @api_versions = EasyApiDoc::ApiVersion.all
end

#showObject



8
9
10
# File 'app/controllers/easy_api_doc/api_controller.rb', line 8

def show
  @api_version = EasyApiDoc::ApiVersion.find(params[:id])
end