Revision 6ce2ab70
Added by Ivan Necas over 11 years ago
- ID 6ce2ab7004feb02a5526b6c743937c92f764c90f
config/initializers/apipie.rb | ||
---|---|---|
config.app_info = "The Foreman is aimed to be a single address for all machines life cycle management."
|
||
config.copyright = ""
|
||
config.api_base_url = "/api"
|
||
config.api_controllers_matcher = "#{Rails.root}/app/controllers/api/v1/*.rb"
|
||
config.api_controllers_matcher = "#{Rails.root}/app/controllers/api/**/*.rb"
|
||
config.ignored_by_recorder = %w[]
|
||
config.doc_base_url = "/apidoc"
|
||
config.use_cache = Rails.env.production?
|
||
config.validate = false
|
||
config.force_dsl = true
|
||
config.reload_controllers = Rails.env.development?
|
||
config.markup = Apipie::Markup::Markdown.new if Rails.env.development? and defined? Redcarpet
|
||
config.markup = Apipie::Markup::Markdown.new if Rails.env.development? and defined? Maruku
|
||
config.default_version = "v1"
|
||
end
|
||
|
||
# special type of validator: we say that it's not specified
|
Also available in: Unified diff
Using Apipie versioning features and Maruku for markdown
Apipie switched from Redcarpet to Maruku to avoid crashes of the C
Extension. No further need of compiling anything to get markdown support.