| Constructor and Description |
|---|
Options(String path)
Creates a new
ApiTool.Options object. |
| Modifier and Type | Method and Description |
|---|---|
ApiTool.Options |
disableTryIt()
Disable try button.
|
ApiTool.Options |
disableUI()
Turn off UI.
|
ApiTool.Options |
redoc()
Add ReDoc UI to swagger
(has no effects on RAML).
|
ApiTool.Options |
redoc(String path)
Add ReDoc UI to swagger
(has no effects on RAML).
|
ApiTool.Options |
tagger(Function<RouteMethod,String> tagger)
Set a custom tagger (a.k.a as groupBy operator).
|
ApiTool.Options |
theme(String theme)
Set default theme.
|
ApiTool.Options |
use(Path file)
Set specification file like
swagger.json, api.raml, etc... |
ApiTool.Options |
use(String file)
Set specification file like
swagger.json, api.raml, etc... |
public Options(String path)
ApiTool.Options object.path - Path to mount the export tool. Usually /swagger or /raml.public ApiTool.Options disableUI()
public ApiTool.Options disableTryIt()
public ApiTool.Options theme(String theme)
Complete list of Swagger theme are available here.
Raml comes with only two themes: light and dark.
theme - Theme name.public ApiTool.Options use(String file)
swagger.json, api.raml, etc...
If this file is present the ApiTool module uses it (no source scan occurs).
use(new ApiTool()
.swagger(options -> {
options.use("my-swagger.json");
});
);
file - Classpath file location.public ApiTool.Options use(Path file)
swagger.json, api.raml, etc...
If this file is present the ApiTool module uses it (no source scan occurs).
use(new ApiTool()
.swagger(options -> {
options.use("my-swagger.json");
});
);
file - External file location.public ApiTool.Options tagger(Function<RouteMethod,String> tagger)
tagger - Custom tagger.public ApiTool.Options redoc(String path)
path - Redoc base path.public ApiTool.Options redoc()
Copyright © 2021. All rights reserved.