Hi,
As per the documentation [1], have you tried using HTTP Auth? Your
application can be Java or it can even be a bash script using the cURL
command, just to an HTTP PUT
Thanks,
Eduard
P.S.: The comments section [2] of the documentation doc also seem to have
the information you seem to need. If they prove to be up to date, it would
be a good idea to include them in the documentation itself, maybe in the
examples sections, what do you think?
----------
[1]
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#HAuthenti…
[2]
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI#Comments
On Mon, Dec 21, 2015 at 9:40 PM, Bryn Jeffries <bryn.jeffries(a)sydney.edu.au>
wrote:
  Hello,
 I need to write a small Java utility to interact with my XWiki server -
 it's main purpose is to take a file containing paths to various files, and
 then upload (POST) them to the server. It looks as though this cannot be
 done from within the browser directly since sandboxing prevents working
 with file paths directly.
 Having read through the RESTful client information (
 
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI) I am
 not sure I need to completely go down this route as I don't need access to
 representations of the XWiki objects. AFAICS I will simply need to GET and
 POST to specific URLs of the wiki. However, I would greatly appreciate
 advice on how best to handle authentication. Guest users are not allowed,
 so username and password should be provided, and in some way a session
 needs to be maintained. Are there any simple examples for logging in to
 XWiki and maintaining a session from within a Java client? I'm wondering if
 I still might need the RESTful API for this, but the documentation doesn't
 really cover this in detail.
 Thanks,
 Bryn
 _______________________________________________
 users mailing list
 users(a)xwiki.org
 
http://lists.xwiki.org/mailman/listinfo/users