Bugfix, only one RIC was synched
[nonrtric.git] / policy-agent / src / main / java / org / oransc / policyagent / SwaggerConfig.java
index df5e7b4..ddcf0d3 100644 (file)
@@ -36,18 +36,19 @@ import springfox.documentation.spring.web.plugins.Docket;
 import springfox.documentation.swagger2.annotations.EnableSwagger2;
 
 /**
- * Swagger configuration class that uses swagger2 documentation type and scans all the controllers
- * under org.oransc.policyagent.controllers package. To access the swagger gui go to
- * http://ip:port/swagger-ui.html
+ * Swagger configuration class that uses swagger2 documentation type and scans
+ * all the controllers under org.oransc.policyagent.controllers package. To
+ * access the swagger gui go to http://ip:port/swagger-ui.html
  *
  */
 @Configuration
 @EnableSwagger2
 public class SwaggerConfig extends WebMvcConfigurationSupport {
 
-    static final String API_TITLE = "Policy server";
-    static final String DESCRIPTION = "This page lists all the rest apis for Policy server.";
+    static final String API_TITLE = "A1 Policy management service";
+    static final String DESCRIPTION = "This page lists all the rest apis for the service.";
     static final String VERSION = "1.0";
+    @SuppressWarnings("squid:S1075") // Refactor your code to get this URI from a customizable parameter.
     static final String RESOURCES_PATH = "classpath:/META-INF/resources/";
     static final String WEBJARS_PATH = RESOURCES_PATH + "webjars/";
     static final String SWAGGER_UI = "swagger-ui.html";
@@ -67,6 +68,8 @@ public class SwaggerConfig extends WebMvcConfigurationSupport {
             .paths(PathSelectors.any()) //
             .paths(Predicates.not(PathSelectors.regex("/error"))) //
             // this endpoint is not implemented, but was visible for Swagger
+            .paths(Predicates.not(PathSelectors.regex("/actuator.*"))) //
+            // this endpoint is implemented by spring framework, exclude for now
             .build();
     }