<
From version < 50.1 >
edited by Thomas Mortagne
on 2015/09/21
To version < 51.1 >
edited by Vincent Massol
on 2015/10/27
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.ThomasMortagne
1 +XWiki.VincentMassol
Content
... ... @@ -1062,3 +1062,14 @@
1062 1062  the ##<attribute>## elements) are useful when clients need to understand the type of data contained in an object (e.g., when they want to display it). They are not necessary when creating an object because the system already has this information. That's why the XML to be sent is smaller. Actually the only information needed is the ##<className>## and a set of ##<property name="..."><value>## elements.
1063 1063  
1064 1064  * How do you know what kind of information you can send with the XML? You can discover it by using the class description URI. If you go to ##http:~/~/localhost:8080/xwiki/rest/wikis/xwiki/classes ## you will get a list of all the classes defined in the Wiki. By looking at this you will understand what are the properties defined by each class, their types and attributes. In that way you will know what you're allowed to put in the ##<property><value>## elements of the XML you send.
1065 +
1066 += Examples =
1067 +
1068 +== Getting the list of users ==
1069 +
1070 +Since Users are stored as Objects, you can do a search of the type ##XWiki.XWikiUsers##. For example:
1071 +
1072 +{{code}}
1073 +http://<server>/xwiki/rest/wikis/query?q=object:XWiki.XWikiUsers
1074 +{{/code}}
1075 +

Get Connected