Monday, 15 February 2010

tomcat - how can I pass parameter with slash as the PathParam in rest API -


I create a restful API such as www.example.com/checking/{id} and it works well But when I pass an ID with a slash like an ACC / 123, the API path goes to www.example.com/checking/abc/123 which actually breaks the path.

I am encoded as encoded URL ID, such as ABC / 123 ABC% 2F 123, but it seems that when I use it to hit my API, it is hanging there , I can not find anything in the log

Is there any suggestion so that I can do this? Is this a Tomato configuration problem or coding problem?

Thank you,

Solutions and solutions to the problem deployed in this solution.


No comments:

Post a Comment