run static method
Runs apiRoot
and returns the APIServer.
Implementation
static Future<APIServer> run(
APIRoot apiRoot,
List<String> args, {
int argsOffset = 0,
bool verbose = false,
}) async {
var apiServer = create(apiRoot, args, argsOffset);
await apiServer.start();
if (verbose) {
print('\nRunning: $apiServer\n');
print('${apiRoot.apiConfig}\n');
print('URL: ${apiServer.apiInfoURL}\n');
}
return apiServer;
}