I have a Wiki called 'mywiki', and I've created some nested pages/spaces
within the web interface.
I use REST to walk the children tree recursively, and I see the following
fullNames:
mywiki.foo.WebHome
mywiki.foo.bar.WebHome
mywiki.foo.kitten.WebHome
mywiki.dog.WebHome
Now, I create a page via REST using this URL:
http://myhost/xwiki/rest/wikis/xwiki/spaces/mywiki/spaces/foo/spaces/bar/sp…
The page is successfully created and I see it on the web site. Under
Navigation I see it in the tree:
v mywiki
v foo
v bar
• mynewpage
I can go to the page
http://myhost/xwiki/bin/view/mywiki/foo/bar/mynewpage,
and the page text that I *PUT* there is there.
If I go to
http://myhost/xwiki/bin/view/mywiki/foo/bar/?viewer=children,
mynewpage is listed there.
However, if I go to
http://myhost/xwiki/rest/wikis/mywiki/spaces/foo/spaces/bar/pages/WebHome/c…
.... mynewpage is NOT listed there.
What am I doing wrong? Why does the web version of asking mynewpage for its
children and the REST version of the same thing give me different results?
--
View this message in context:
http://xwiki.475771.n2.nabble.com/when-creating-a-page-via-REST-it-doesn-t-…
Sent from the XWiki- Users mailing list archive at
Nabble.com.