Hi guys,
I’m trying to use the Job REST API but the doc is pretty poor at
http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HJobresources
For example to execute a job it says that you only need to pass a “jobType”
described as "The type of the job to pass to the Job Executor” … errr what’s
the type and what are the valid values? Would be nice to have some example too.
Also it doesn’t mention any payload that I have to send but I guess I need to
describe the job that I need to execute. What’s the format?
It also says:
“
Since 9.2RC1 jobs started trough the REST API automatically get their runtime
context injected with the following REST HTTP request context properties:
• current wiki
• current user
• request URL and parameters
“
What if I want to specify the wiki, user for ex? How do I do that?
At the end there are examples of file format at
http://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/XWikiRESTfulAPI#HFormatsoffiles
but nothing for jobs.
Could someone help improve the doc so that I can try to use it?
Thanks!
-Vincent