Fabio Mancinelli-4 wrote:
Using curl, for example you would have done something like this:
$ curl -v -u Admin:admin -X PUT -H "Content-type: text/plain"
--data-ascii "Real User01 Name"
http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/XWiki/pages/user01/obje…
To see how this is translated in Java you can hava a look at the
functional tests for the REST Api. You can find them here:
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/rest-…
And in particular, for objects and properties you can have a look at:
http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/rest-…
Thanks Fabio. Thanks a bunch.
Thankyou for guiding me to the java file. It cleared out all the doubts on
my mind. I was able to do my pending tasks. :)
-Manish
--
View this message in context:
http://xwiki.475771.n2.nabble.com/Altering-Access-Rights-from-REST-Api-tp52…
Sent from the XWiki- Users mailing list archive at
Nabble.com.