<
From version < 31.2 >
edited by Eduard Moraru
on 2011/07/21
To version < 32.1 >
edited by Fabio Mancinelli
on 2011/10/20
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.enygma
1 +XWiki.fmancinelli
Content
... ... @@ -70,6 +70,7 @@
70 70  |{{{http://www.xwiki.org/rel/tags}}}|The representation of the list of tags associated to the current resource.
71 71  |{{{http://www.xwiki.org/rel/tag}}}|The representation of a tag.
72 72  |{{{http://www.xwiki.org/rel/search}}}|The representation for a search resource.
73 +|{{{http://www.xwiki.org/rel/syntaxes}}}|The representation for a syntax resource.
73 73  
74 74  Relations are defined as URIs in order to provide a sort of namespace. Currently these URIs are not links to real web pages but, in the future, they might point to descriptions of their semantics on actual web pages (or other kinds of representations).
75 75  
... ... @@ -186,6 +186,7 @@
186 186  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
187 187  <page xmlns="http://www.xwiki.org">
188 188   <title>Hello world</title>
190 + <syntax>xwiki/2.0</syntax>
189 189   <content>This is a new page</content>
190 190  </page>
191 191  {{/code}}
... ... @@ -192,6 +192,9 @@
192 192  
193 193  The page has been created and is accessible. Subsequent PUT requests to the page URI will modify its content.
194 194  
197 +You can specify a subset of the three elements {{{title}}}, {{{syntax}}}, and {{{content}}} in the XML when updating/creating a page.
198 +For example, if you just want to change the title, it is sufficient to specify only the {{{title}}} element. The current content and the syntax of the page will be left unchanged.
199 +
195 195  == Overcoming browser limitations ==
196 196  
197 197  As said before, it could be useful to send information by using browser's XmlHttpRequest objects. However, currently many browsers only support GET and POST methods, so it is impossible to send, for example, PUT requests. In order to overcome this limitation you can override the HTTP Method by specifying a ##method## parameter in the URI query string.
... ... @@ -229,12 +229,21 @@
229 229  ** **Status codes:**
230 230  *** 200: If the request was successful.
231 231  
237 +=== /syntaxes
238 +
239 +* **HTTP Method:** GET
240 +** **Media types:**
241 +*** application/xml (Syntaxes element)
242 +** **Description:** The list of syntaxes supported by the XWiki instance.
243 +** **Status codes:**
244 +*** 200: If the request was successful.
245 +
232 232  === /wikis ===
233 233  
234 234  * **HTTP Method:** GET
235 235  ** **Media types:**
236 236  *** application/xml (Wikis element)
237 -** **Description:** Retrieves the entry root description containing information about the server.
251 +** **Description:** The list of wikis available on the XWiki instance. Unless the wiki is configured to be a wiki farm, this list is usually made of a single element 'xwiki'.
238 238  ** **Status codes:**
239 239  *** 200: If the request was successful.
240 240  

Get Connected