Suppress warnings regarding use of @RequestMapping without HTTP method.
It is intentional that these proxy methods handle all requests.
Issue-ID: POLICY-3638
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I79ce6ef994fcbac17d5d8226eedfd98885e2cdbf
/**
* Strip /apex-editor prefix from Apex Editor rest calls.
*/
+ @SuppressWarnings("java:S3752") // Suppress warning about RequestMapping without HTTP method.
@RequestMapping("/**")
public ModelAndView forwardApexEditorRest(ModelMap model, HttpServletRequest request) {
String targetUrl = request.getRequestURI().replaceFirst("^/apex-editor", "");
/**
* Proxy rest calls to clamp backend.
*/
+ @SuppressWarnings("java:S3752") // Suppress warning about RequestMapping without HTTP method.
@RequestMapping("/**")
public ResponseEntity<String> mirrorRest(@RequestBody(required = false) String body,
@RequestHeader HttpHeaders headers,