Right, I just wanted to play it safe - I wasn't sure what the XmlHttpRequest
object would allow as far as verbs. It works as intended.
Also, sure the rest doesn't accept templates - that's a shame but oh well.
I'm trying now to get the template content into a created page. I've figured
I can fetch the content of the template page, using a GET, and put that
<content> element's content into the parameter of the create page arguments.
Current tests seem to work out - haven't tried more complicated templates
but header images and subtitles come across.
I mentioned the /edit/ URLs in passing that if you do put certain parameters
(?template= in this case) it will put the template into the WYSIWYG editor
of the specified Page, very slick.
Anyway, if anyone knows of a way to "create pages with templates" that
sounds better than what I described above I'd love to hear it!
--
View this message in context:
http://xwiki.475771.n2.nabble.com/RESTful-Create-Page-doesn-t-exist-tp75841…
Sent from the XWiki- Dev mailing list archive at
Nabble.com.