CommandableSwaggerDocument constructor
CommandableSwaggerDocument(
- String baseRoute,
- ConfigParams? config,
- List<ICommand> commands
)
Implementation
CommandableSwaggerDocument(
String baseRoute, ConfigParams? config, List<ICommand> commands) {
this.baseRoute = baseRoute;
this.commands = commands;
config = config ?? ConfigParams();
infoTitle = config.getAsStringWithDefault('name', 'CommandableHttpService');
infoDescription = config.getAsStringWithDefault(
'description"', 'Commandable microservice');
}