swagger api docs fix
This commit is contained in:
@@ -26,7 +26,7 @@ class Api::SwaggerController < ActionController::Base
|
||||
<script src="https://unpkg.com/swagger-ui-dist@5/swagger-ui-bundle.js"></script>
|
||||
<script>
|
||||
SwaggerUIBundle({
|
||||
url: '/api/docs.json',
|
||||
url: '/api/docs.json?type=swagger',
|
||||
dom_id: '#swagger-ui',
|
||||
deepLinking: true,
|
||||
presets: [
|
||||
|
||||
@@ -11,6 +11,7 @@ Apipie.configure do |config|
|
||||
config.translate = false
|
||||
config.default_version = "1.0"
|
||||
config.app_info = "Teletype Games retro game library API"
|
||||
config.swagger_content_type_input = :json
|
||||
config.swagger_json_input_uses_refs = true
|
||||
config.generator.swagger.content_type_input = :json
|
||||
config.generator.swagger.json_input_uses_refs = true
|
||||
config.generator.swagger.suppress_warnings = true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user