Hello everyone!
Maybe I missed something in docs, hope you will help to find the thing I need.
We have:
- template file with velocity script
- brand-new wiki
- curl request that create new page with content from template file (velocity part as a source, of course).
The problem is whenever I am uploading content viacurl -u Admin:Admin -X PUT --data-binary "@script.xml" -H "Content-Type: application/xml" http://my_ip/rest/wikis/xwiki/spaces/Main/pages/NewPage
the script does nothing. Only when I click Edit and than Save – it works.
I there something I can add to request to make script work once page is created?