Copy node from one crx to another using sling [ Rest]
Hi ,
We have a requirement to copy node(s) which matches a given criteria from source CRX to target. For this we used JCR api exportSystemView and importXML and its working fine . We are now trying to achieve the same thing using sling .
Here is what we tried
Get the json contents of the node [ http://<sourcehost>:<port>/crx/library/17/01/170101.0.json ] > worked
Use the source json in the request body and post it to target crx [ http://<targethost>:<port>/crx/library/17/01/170101] where path 17/01/ is not there nor is the node 170101 > Failed
Anyone can give me some hints on how to achieve this ? kindly help me.