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/objects/XWiki.XWikiUsers/0/properties/first_name
> 
> 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-tests/src/test/it/org/xwiki/rest/it/
> 
> And in particular, for objects and properties you can have a look at:
> 
> http://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/rest-tests/src/test/it/org/xwiki/rest/it/ObjectsResourceTest.java
> 
> 

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-tp5210826p5218633.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to