I'm trying to create a node using the sling api in AEM 6.0. Now I know I can easily create a node using a curl call like this
curl -u admin:admin -F"jcr:primaryType= sling:Mapping" http://localhost:4502/content/mynode
But what if I need to get fancy and try to create a resource mapping node with a name like this /etc/map.publish.prd/http/prd.rb.mysite.ca
Now the following curl call does not work anymore because part of the url is treated as selectors
curl -u admin:admin -F"jcr:primaryType= sling:Mapping" http://localhost:4502/etc/map.publish.prd/http/prd.rb.mysite.com
So how would I go about avoiding this issue?
I also tried using the name property to limit the complexity of the url like this.
curl -u admin:admin -F"jcr:primaryType=sling:Mapping" -F"name=prd.rb.mysite.com" http://localhost:4502/etc/map.publish.prd/http
But I think sling still gets confused by map.publish.prd
Any help will be much appreciated Thanks
-Alain