CommandableSwaggerDocument constructor

CommandableSwaggerDocument(
  1. String baseRoute,
  2. ConfigParams? config,
  3. 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');
}