I am new to AWS Lambda, I have created one AWS Rest API gateway and connected to my AWS Lambda, I am able send request and receive response, But the Issue is while am sending request with space ,ie, am sending a path variable with space "Contact Information"
URL Before encode :
/tcn/10005/file-list/Contact Information/1-xxx-222-yyy
/* Using the below java code to give request to AWS API Gate way , It is encode my path variable like below */
String restApi = restUrl +"/tcn/10005/file-list/Contact Information/1-xxx-222-yyy";
UriComponentsBuilder builder = UriComponentsBuilder.fromUriString(restApi);
HttpEntity<String> request = new HttpEntity<>(headers);
ResponseEntity<List> response = restTemplate.exchange(builder.buildAndExpand().toUri(),
HttpMethod.GET, request, List.class);
URL After encode :
/tcn/10005/file-list/Contact%20Information/1-xxx-222-yyy
While receiving this request from lambda am get path variable as "Contact%20Information" but it has to be a decoded value "Contact Information"
Is there any way I can archive this using AWS API Gate ? Please guide me.