Hi.
See below
----- "xManish" <shresthamanish(a)gmail.com> wrote:
Jerome Velociter wrote:
Hi Nithya, Manish
Have you checked
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HPagereso…
?
In particular :
/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}
HTTP Method: PUT
* Accepted Media types:
o application/xml (Page element)
o text/plain (Only page content)
o application/x-www-form-urlencoded (allowed field names:
title,
parent, content)
Is something not clear about it ? Not working ?
Thanks,
Jerome
Hi Jerome,
Thanks for the reply. I was able to create the page afterwards. Sorry
for
the impatience :)
Sorry if my message felt harsh, that was not the intend :)
However, today I am into different but similiar
situation. I need to
create
users in XWiki through REST Api.
Is it possible? How to do it?
Currently, I'm not sure you can perform this as an atomic operation.
Unless maybe your wiki runs with the implicit XWikiAllGroup setting (see
http://jira.xwiki.org/jira/browse/XWIKI-2116 )
What you have to do is then use the object REST api (
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HObjectre… ),
creating a page with an object of class XWiki.XWikiUsers
If you don't have the implicit XWikiAllGroup then you need to add an object of class
XWiki.XWikiGroups with the created user as member, to XWiki.XWikiAllGroup document.
I agree an API to directly hit and create users, under /wikis/{wikiName}/users would be
nice.
Regards,
Jerome.
Thanks,
Manish
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-add-a-page-with-contents-in-xwiki-…
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users