I have to use this value as path parameter 6425716f2f8541d5afd52a6e7321743b%2Fv3
It should look like this
GET https://abc123.com/policyNumber/6425716f2f8541d5afd52a6e7321743b%2Fv3
However it is getting changed to 6425716f2f8541d5afd52a6e7321743b%252Fv3 when I do not use encoding. <Changes %2 to %25>
I have tried this approach as well:
* def encoded = 6425716f2f8541d5afd52a6e7321743b%2Fv3
* def id = java.net.URLDecoder.decode(encoded, 'UTF-8')
And path 'abc/v3/policies/'
* header Content-Type = 'application/json'
And path id
However in the above case I get 6425716f2f8541d5afd52a6e7321743b/v3<Removed the %2F and changed to />
I am using version <karate.version>0.9.5</karate.version>
How do I handle this encoding for path parameter?