demarches-normaliennes/config/initializers/swagger-docs.rb
2016-02-18 18:02:07 +01:00

21 lines
No EOL
1.5 KiB
Ruby

Swagger::Docs::Config.register_apis({
"1.0" => {
# the extension used for the API
# :api_extension_type => :json,
# the output location where your .json files are written to
:api_file_path => "public",
# the URL base path to your API
:base_path => TPS::Application::URL,
# if you want to delete all .json files at each generation
:clean_directory => false,
# Ability to setup base controller for each api version. Api::V1::SomeController for example.
# :parent_controller => API::V1,
# add custom attributes to api-docs
:attributes => {
:info => {
"title" => "API TéléProcédure Simplifiée",
"description" => "",
}
}
}
})