Changes for page REST API

Last modified by Thomas Mortagne on 2024/03/12

<
From version < 37.8 >
edited by DanJones
on 2012/08/17
To version < 37.9 >
edited by DanJones
on 2012/08/17
>
Change comment: Added comment

Summary

Details

XWiki.XWikiComments[2]
Date
... ... @@ -1,1 +1,1 @@
1 -2012-08-17 14:54:01.619
1 +2012-08-17 14:54:01.0
XWiki.XWikiComments[3]
Author
... ... @@ -1,0 +1,1 @@
1 +xwiki:XWiki.DanJones
Comment
... ... @@ -1,0 +1,9 @@
1 +In Eclipse, you can right click on an xsd file, like the xsd for the REST api [[described here>>XWikiRESTfulAPI#HXWikiRESTfulAPIDocumentation]], and choose "Generate->JAXB classes".
2 +
3 +Whatever package that you choose to generate them in, you would use in the
4 +{{code language="java"}}
5 +context = JAXBContext.newInstance("org");
6 +{{/code}}
7 + In the examples I gave, I just generated them under a package called "org", mostly due to extreme laziness. So I ended up with org.Page, org.ObjectFactory, org.Space and so on.
8 +
9 +
Date
... ... @@ -1,0 +1,1 @@
1 +2012-08-17 15:05:15.102

Get Connected