Module: SwaggerUiEngine2
- Defined in:
- lib/swagger_ui_engine_2.rb,
lib/swagger_ui_engine_2/engine.rb,
lib/swagger_ui_engine_2/version.rb,
lib/swagger_ui_engine_2/defaults.rb,
lib/swagger_ui_engine_2/configuration.rb,
app/helpers/swagger_ui_engine_2/config_parser.rb,
app/helpers/swagger_ui_engine_2/application_helper.rb,
app/helpers/swagger_ui_engine_2/auth_config_parser.rb,
app/controllers/swagger_ui_engine2/application_controller.rb,
app/controllers/swagger_ui_engine2/swagger_docs_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, AuthConfigParser, ConfigParser
Classes: ApplicationController, Configuration, Engine, SwaggerDocsController
Constant Summary
collapse
- VERSION =
"0.2.0"
- DEFAULTS =
{
swagger_url: 'http://petstore.swagger.io/v2/swagger.json',
doc_expansion: 'none',
json_editor: false,
model_rendering: 'schema',
request_headers: false,
validator_url: '//online.swagger.io/validator'
}.freeze
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
11
12
13
|
# File 'lib/swagger_ui_engine_2.rb', line 11
def configuration
@configuration ||= Configuration.new
end
|
15
16
17
|
# File 'lib/swagger_ui_engine_2.rb', line 15
def configure
yield configuration
end
|