Changing URL in Response Body of CBS Services
responseBodyTextToClient=responseBodyTextToClient.replaceAll('https://geomap.reteunitaria.piemonte.it/ws/gsareprot/rp-01/areeprotwfs/wfs_gsareprot_1?', 'https://api.apinizer.com/apigateway/geoservis');
responseBodyTextToClient=responseBodyTextToClient.replaceAll('http://geomap.reteunitaria.piemonte.it/ws/gsareprot/rp-01/areeprotwfs/wfs_gsareprot_1?', 'https://api.apinizer.com/apigateway/geoservis');
Example Explanation
This example replaces URLs in the response body returned from the backend service that start with both HTTP and HTTPS protocols with the Apinizer Gateway URL. Thus, the client sees URLs routed through Apinizer instead of seeing backend URLs.