writeOpenApi method
write openapi.json and openapi.yaml of the app routes into dir.
bin/openapi.dart calls this for dox openapi:generate.
Dox().initialize(appConfig);
await Dox().writeOpenApi('storage/openapi');
Implementation
Future<List<File>> writeOpenApi(String dir) async {
addServices(config.services);
for (DoxService service in doxServices) {
await service.setup();
}
_registerRoute();
return OpenApiDocument(config.openApi).write(dir);
}