0

I am using path param as a part of my api : I am sending form a spring boot application to a another servlet with has jersey as a REST framework. when I am sending i am doing :

 final String encrypt = aes.encrypt(customerId);    
 restTemplate.exchange(basicUrl+"/customer/{customer}"+ "?q=3",HttpMethod.GET, stringHttpEntity, ListingDto.class, encryptedcustomer);

and in the other side there is path param :

@GET
@Path("/customer/{customerId}")
@Consumes(MediaType.APPLICATION_JSON)
public Response getLocationsByAccount(@QueryParam("q") String filter)

the problem is that the string which describe encryptedcustomer has inside / aign , so the jersey mapping dont know how to handle it , any thoughts how to do it right ?

yoav.str
  • 1,547
  • 6
  • 33
  • 73

1 Answers1

2

You are sending the encrypted value inside the url so you can't use special characters as "/". You have to options:

Community
  • 1
  • 1