<
From version < 67.2 >
edited by Vincent Massol
on 2017/05/10
To version < 70.1 >
edited by Vincent Massol
on 2017/09/06
>
Change comment: Copied from platform:Features.XWikiRESTfulAPI

Summary

Details

Page properties
Content
... ... @@ -300,7 +300,7 @@
300 300  ** **Status codes:**
301 301  *** 200: If the request was successful.
302 302  
303 -=== /wikimanager (This resource is only available when using XWiki Enterprise Manager) ===
303 +=== /wikimanager (This resource is only available when using the [[multi-wiki>>extensions:Extension.Wiki Application]] feature) ===
304 304  
305 305  * **HTTP Method:** POST
306 306  ** **Accepted Media types:**
... ... @@ -944,10 +944,10 @@
944 944  
945 945  * current wiki
946 946  * current user
947 -* current document
948 -* current secure document
949 949  * request URL and parameters
950 950  
949 +Since 9.7RC1 failing jobs with ##async=false## return an error 500.
950 +
951 951  * **HTTP Method:** PUT
952 952  ** **Accepted Media types:**
953 953  *** application/xml (JobRequest element)
... ... @@ -1115,7 +1115,7 @@
1115 1115  
1116 1116  === Example of a file for a ##wiki## ===
1117 1117  
1118 -{{code language='xml'}}
1118 +{{code language="xml"}}
1119 1119  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1120 1120  <wiki xmlns="http://www.xwiki.org">
1121 1121   <id>xwiki</id>
... ... @@ -1127,7 +1127,7 @@
1127 1127  
1128 1128  === Example of a file for a ##space## ===
1129 1129  
1130 -{{code language='xml'}}
1130 +{{code language="xml"}}
1131 1131  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1132 1132  <space xmlns="http://www.xwiki.org">
1133 1133   <id>xwiki:Main</id>
... ... @@ -1141,7 +1141,7 @@
1141 1141  
1142 1142  === Example of a file for a ##page## ===
1143 1143  
1144 -{{code language='xml'}}
1144 +{{code language="xml"}}
1145 1145  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1146 1146  <page xmlns="http://www.xwiki.org">
1147 1147   <id>xwiki:Main.WebHome</id>
... ... @@ -1176,7 +1176,7 @@
1176 1176  
1177 1177  === Example of a file for a ##tag## ===
1178 1178  
1179 -{{code language='xml'}}
1179 +{{code language="xml"}}
1180 1180  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1181 1181  <tags xmlns="http://www.xwiki.org">
1182 1182   <tag name="food"></tag>
... ... @@ -1185,7 +1185,7 @@
1185 1185  
1186 1186  === Example of a file for a ##comment## ===
1187 1187  
1188 -{{code language='xml'}}
1188 +{{code language="xml"}}
1189 1189  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1190 1190  <comments xmlns="http://www.xwiki.org">
1191 1191   <comment>
... ... @@ -1203,7 +1203,7 @@
1203 1203  
1204 1204  === Example of a file for an ##object## ===
1205 1205  
1206 -{{code language='xml'}}
1206 +{{code language="xml"}}
1207 1207  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1208 1208  <object xmlns="http://www.xwiki.org">
1209 1209   <id>xwiki:Main.WebHome:c170a0a8-cc17-41cd-aa1e-6f6faf1d9f28</id>
... ... @@ -1231,7 +1231,7 @@
1231 1231  
1232 1232  === Example of a file for a ##property## ===
1233 1233  
1234 -{{code language='xml'}}
1234 +{{code language="xml"}}
1235 1235  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1236 1236  <property xmlns="http://www.xwiki.org" name="defaultEditMode" type="String">
1237 1237   <attribute name="name" value="defaultEditMode"/>
XWiki.XWikiComments[3]
Comment
... ... @@ -1,9 +1,5 @@
1 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 2  
3 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}}
4 +{{code language="java"}}context = JAXBContext.newInstance("org");{{/code}}
7 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 -
XWiki.XWikiComments[6]
Comment
... ... @@ -5,4 +5,3 @@
5 5  
6 6  This allows to render the XWiki HTML content in a third party system, while keeping the content management in XWiki.
7 7  Perhaps this helps from manual translation of XWiki to HTML
8 -

Get Connected