Revision: 3939
Author: [email protected]
Date: Sun Jul 3 07:41:03 2011
Log: Edited wiki page RestMethods through web user interface.
http://code.google.com/p/openmeetings/source/detail?r=3939
Modified:
/wiki/RestMethods.wiki
=======================================
--- /wiki/RestMethods.wiki Sun Jul 3 07:28:12 2011
+++ /wiki/RestMethods.wiki Sun Jul 3 07:41:03 2011
@@ -2,9 +2,21 @@
= Introduction =
-For a detailed instruction which params and method can be used see
[SoapMethods]. ALL methods that are implemented for the SOAP API are also
available via REST.
+For a detailed instruction which services, methods and params are
available see the list in the [SoapMethods]. ALL methods that are
implemented for the SOAP API are also available via REST.
= How to invoke Services via REST =
For example for the method getSession in the !UserService, you would use
this URL via Rest:<br/>
http://demo.openmeetings.de/openmeetings/services/UserService/getSession
+
+Returns:
+{{{
+<ns:getSessionResponse><ns:return
type="org.openmeetings.app.hibernate.beans.basic.Sessiondata"><ax219:id>156971</ax219:id><ax219:language_id
xsi:nil="true"/><ax219:organization_id
xsi:nil="true"/><ax219:refresh_time>2011-07-03T14:40:44.000Z</ax219:refresh_time><ax219:sessionXml
xsi:nil="true"/><ax219:session_id>26584705202d7c1de6cc8e7e28890e3d</ax219:session_id><ax219:starttermin_time>2011-07-03T14:40:44.000Z</ax219:starttermin_time><ax219:storePermanent
xsi:nil="true"/><ax219:user_id
xsi:nil="true"/></ns:return></ns:getSessionResponse>
+}}}
+
+To login a user the call to auth would be:<br/>
+http://demo.openmeetings.de/openmeetings/services/UserService/loginUser?SID=2b84d98ced30a584041505de8b2f1932&username=hans&userpass=test
+
+=> It does return -10, which is the error id cause we will not write down
a SOAP login to our public server in this wiki.
+However the correct way to check this error would be to invoke the call to
get the localized error message. So we invoke the method to get the error
via REST:<br/>
+http://demo.openmeetings.de/openmeetings/services/UserService/getErrorByCode?SID=2b84d98ced30a584041505de8b2f1932&errorid=-10&language_id=1
--
You received this message because you are subscribed to the Google Groups
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/openmeetings-dev?hl=en.