Post request will generate the recordID like
{ "recordId": "1479840L1/1" } I want to use the same ID in the below sample get request endpoint after ?recordId=
https://random-query-serv-poc-test-dummy.apps.dev-tst.xxx.net.au/api/read/APPLICATION?recordId=1479840L1/1
How do I write a code to automate this GET Request? I have written this code - but its not working as it is taking the request URI as below
https://random-query-serv-poc-test-dummy.apps.dev-tst.xxx.net.au/api/read/APPLICATION?recordId= 1479840L1%2F1
SerenityRest.rest().given().
header("header1", "ebc").
header("header2", "svc").
contentType(ContentType.JSON).
log().all().
when().
get("https://random-query-serv-poc-test-dummy.apps.dev-tst.xxx.net.au/api/read/APPLICATION?recordId==" + recordId).
then().log().all().
assertThat().
statusCode(200);
How can I send the request ID as it is converting the "/" as "%2F"