aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/reference.conf
diff options
context:
space:
mode:
authorJakob Odersky <jakob@driver.xyz>2018-01-22 14:28:13 -0800
committerJakob Odersky <jakob@driver.xyz>2018-01-22 15:01:01 -0800
commitb9a1319214e8efdfe2af737236e7ce6d45f08fc2 (patch)
tree206e055f14291e09a65f794b675d82a67eb5fee5 /src/main/resources/reference.conf
parent199446c2f878992be2a21a00a9263b6330738151 (diff)
downloaddriver-core-b9a1319214e8efdfe2af737236e7ce6d45f08fc2.tar.gz
driver-core-b9a1319214e8efdfe2af737236e7ce6d45f08fc2.tar.bz2
driver-core-b9a1319214e8efdfe2af737236e7ce6d45f08fc2.zip
Include swagger UI in core
These changes centralize the location of the swagger UI web files. The git attributes instruct GitHub to treat the web files as vendored code, as to not be included in the project code statistics. See https://github.com/github/linguist for a more detailed explanation.
Diffstat (limited to 'src/main/resources/reference.conf')
-rw-r--r--src/main/resources/reference.conf33
1 files changed, 28 insertions, 5 deletions
diff --git a/src/main/resources/reference.conf b/src/main/resources/reference.conf
index 637f713..16dcfda 100644
--- a/src/main/resources/reference.conf
+++ b/src/main/resources/reference.conf
@@ -1,25 +1,48 @@
+######################################################################
+# Default settings for driver core. Any settings defined by users of #
+# this library will take precedence. See the documentation of the #
+# Typesafe Config Library (https://github.com/lightbend/config) for #
+# more information. #
+######################################################################
-// This file takes on the lowest config priority. Any settings implemented in
-// entities that use this library will take precedence.
+# This scope is for general settings related to the execution of a
+# specific service.
application {
baseUrl: "localhost:8080"
environment: "local_testing"
}
+# Settings about the auto-generated REST API documentation.
swagger {
+
+ # Version of the Swagger specification
+ # (https://swagger.io/specification/). Note that changing this will
+ # likely require changing the way Swagger is integrated into
+ # driver-core, involving upgrading libraries and web resources.
apiVersion = "2.0"
+
basePath = "/"
+
docsPath = "api-docs"
+ # Description and usage of the specific API provided by the service
+ # using this library.
apiInfo {
- title = "NEW SERVICE"
+
+ # Name of the service
+ title = "NEW SERVICE (change config swagger.apiInfo)"
+
+ # Description of the service
description = "Please implement swagger info in your new service"
- termsOfServiceUrl = "TOC Url"
+
+ # Contact for support about this service.
contact {
name = "Driver Inc."
- url = "http://driver.xyz"
+ url = "https://driver.xyz"
email = "info@driver.xyz"
}
+
+ termsOfServiceUrl = "TOC Url"
license = "Apache V2"
licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0"
}