Committed by
Gerrit Code Review
[ONOS-3394] Remove network configuration model from SwaggerUi and line stripping…
… for better swagger.json formatting. Change-Id: I0200407b829baff84a921fa6027a3ebb4c873dfc
Showing
2 changed files
with
1 additions
and
2 deletions
... | @@ -293,6 +293,7 @@ public class OnosSwaggerMojo extends AbstractMojo { | ... | @@ -293,6 +293,7 @@ public class OnosSwaggerMojo extends AbstractMojo { |
293 | + param + ".json"); | 293 | + param + ".json"); |
294 | String lines = Files.readLines(config, Charsets.UTF_8).stream().reduce((t, u) -> t + u). | 294 | String lines = Files.readLines(config, Charsets.UTF_8).stream().reduce((t, u) -> t + u). |
295 | get(); | 295 | get(); |
296 | + lines = lines.replaceAll("\\s+",""); | ||
296 | definitions.putPOJO(param, lines); | 297 | definitions.putPOJO(param, lines); |
297 | } catch (IOException e) { | 298 | } catch (IOException e) { |
298 | e.printStackTrace(); | 299 | e.printStackTrace(); | ... | ... |
... | @@ -68,7 +68,6 @@ public class NetworkConfigWebResource extends AbstractWebResource { | ... | @@ -68,7 +68,6 @@ public class NetworkConfigWebResource extends AbstractWebResource { |
68 | /** | 68 | /** |
69 | * Get entire network configuration base. | 69 | * Get entire network configuration base. |
70 | * | 70 | * |
71 | - * @rsModel NetCfgGet | ||
72 | * @return network configuration JSON | 71 | * @return network configuration JSON |
73 | */ | 72 | */ |
74 | @GET | 73 | @GET |
... | @@ -185,7 +184,6 @@ public class NetworkConfigWebResource extends AbstractWebResource { | ... | @@ -185,7 +184,6 @@ public class NetworkConfigWebResource extends AbstractWebResource { |
185 | /** | 184 | /** |
186 | * Upload bulk network configuration. | 185 | * Upload bulk network configuration. |
187 | * | 186 | * |
188 | - * @rsModel NetCfgGet | ||
189 | * @param request network configuration JSON rooted at the top node | 187 | * @param request network configuration JSON rooted at the top node |
190 | * @return empty response | 188 | * @return empty response |
191 | * @throws IOException if unable to parse the request | 189 | * @throws IOException if unable to parse the request | ... | ... |
-
Please register or login to post a comment