REST: How to change child resource path without changing Parent?
Hi. I want to change the path of a child resource, without changing its parent. I've tried editing the path in 'Resource Viewer' but it was changing the parent' path also. Scenario:
I have a REST Project with 1 endpoint and two resources PResource 1, PResource2. The PResource1 has child resources CResource1, CResource2. Both the child resources contain few more child resources each. The paths of the resources are given below:
PResource1[PathA]
->CResource1[PathA/PathB]
->->CCResource1[PathA/PathB/PathD]
->CResource2[PathA/PathC]
->->CCResource1[PathA/PathC/PathE]
PResource2[PathX]
Now, my requirement is that the path 'PathA' needs to be changed only for CResource1 and NOT for CResource2. I couldn't do it.
Also, both the child resources has huge number of test cases linked to them, using the methods and REST requests defined for the resources. Hence, the tests need to use the same methods and parameters and values.(So, Cloning the parent resource didn't help either).
Is there a way i could rename the child resource? or may be change it as a parent resource?
Path A could be changed by using a template parameter
https://www.soapui.org/rest-testing/understanding-rest-parameters.html