Solutionunvalidated

You could implement a custom converter which takes a request object & maintain list of `requestUri`s — where you don't want to include the prefix. Tension: You can also make this class as a `@Component` & import the list of excluded APIs from the properties. Outcome: if (!excludedApis.contains(request.getRequestURI())) { StreamUtils.copy(")]}',\n".getBytes(StandardCharsets.UTF_8), outputMessage.getBody()); }.

6fff04ee-e5f7-4ba3-b03b-d6d4e4201c2b

You could implement a custom converter which takes a request object & maintain list of requestUris — where you don't want to include the prefix. Tension: You can also make this class as a @Component & import the list of excluded APIs from the properties. Outcome: if (!excludedApis.contains(request.getRequestURI())) { StreamUtils.copy(")]}',\n".getBytes(StandardCharsets.UTF_8), outputMessage.getBody()); }.