Value parameters
- contextPath
-
The context path in which the interpreted documentation endpoints are going to be attached. Only relevant when {{useRelativePaths == false}}. E.g. when context path is
List("api", "v1"),useRelativePaths = false, and other parameters are left with default values, the generated full path to the yaml will be/api/v1/docs/docs.yaml, instead of./docs/docs.yamlor./docs.yaml(depending on the referrer's uri). Also used for creating redirects. Defaults toNil. - initializerOptions
-
Optional Map[String,String], which allows the addition of custom options to the
SwaggerUIBundle({...})call inswagger-initializer.js. E.g.Map("oauth2RedirectUrl"->"\"http://localhost/customCallback\"")injects the key value pairoauth2RedirectUrl: "http://localhost/customCallback"into theSwaggerUIBundle({...})call in thatswagger-initializer.jsfile. - oAuthInitOptions
-
Optional Map[String,String], which allows the injection of
window.ui.initOAuth({...});with specified options as forinitializerOptions. The main difference being thatSwaggerUIBundle({...})will always be called, whereaswindow.ui.initOAuth({...});is called if and only ifoAuthInitOptionsis not None. - pathPrefix
-
The path prefix which will be added to the documentation endpoints, as a list of path segments. Defaults to
List("docs"), so the address of the docs will be./docs(relative to the context in which the interpreted docs endpoints are attached). - showExtensions
-
Should display the content of vendor extensions (x-) fields and values for Operations, Parameters, Responses, and Schema. Defaults to
false. - useRelativePaths
-
Should relative paths be used for yaml references and redirects. Defaults to
true. - yamlName
-
The name of the file, through which the yaml documentation will be served. Defaults to
docs.yaml.
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any