X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=policy-agent%2Fsrc%2Fmain%2Fjava%2Forg%2Foransc%2Fpolicyagent%2FSwaggerConfig.java;h=ddcf0d35498134e3ff38dc2ff1b3425af1ddeeee;hb=c6ce83e505a1919db52b054f1d86add74dc8f138;hp=01065f9ca61c09de0eb49126abdaf9a57bf4e07d;hpb=5408c157fc8aca52731fcc2cc035ed9dbfcff219;p=nonrtric.git diff --git a/policy-agent/src/main/java/org/oransc/policyagent/SwaggerConfig.java b/policy-agent/src/main/java/org/oransc/policyagent/SwaggerConfig.java index 01065f9c..ddcf0d35 100644 --- a/policy-agent/src/main/java/org/oransc/policyagent/SwaggerConfig.java +++ b/policy-agent/src/main/java/org/oransc/policyagent/SwaggerConfig.java @@ -48,6 +48,7 @@ public class SwaggerConfig extends WebMvcConfigurationSupport { 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(); }