Andrea Campanella
Committed by Gerrit Code Review

[ONOS-3394] Remove network configuration model from SwaggerUi and line stripping…

… for better swagger.json formatting.

Change-Id: I0200407b829baff84a921fa6027a3ebb4c873dfc
......@@ -293,6 +293,7 @@ public class OnosSwaggerMojo extends AbstractMojo {
+ param + ".json");
String lines = Files.readLines(config, Charsets.UTF_8).stream().reduce((t, u) -> t + u).
get();
lines = lines.replaceAll("\\s+","");
definitions.putPOJO(param, lines);
} catch (IOException e) {
e.printStackTrace();
......
......@@ -68,7 +68,6 @@ public class NetworkConfigWebResource extends AbstractWebResource {
/**
* Get entire network configuration base.
*
* @rsModel NetCfgGet
* @return network configuration JSON
*/
@GET
......@@ -185,7 +184,6 @@ public class NetworkConfigWebResource extends AbstractWebResource {
/**
* Upload bulk network configuration.
*
* @rsModel NetCfgGet
* @param request network configuration JSON rooted at the top node
* @return empty response
* @throws IOException if unable to parse the request
......