A small suggestions to improve the REST api doc.

21 views
Skip to first unread message

Øyvind Skaar

unread,
Sep 15, 2012, 4:31:40 PM9/15/12
to humanio...@googlegroups.com

Hi

I'm testing out the REST API and one thing that confused me a little was the "calls" parameter to "call". Looking at the python hello world, it looked like it only supported one method on each call. So I kept trying to use a JSON hash/object and the server returned "ok" but nothing happened on the client.

Sending an array worked much better :)

Also, it's a  little unclear if the REST API is 100% compatible with the Python API. Do I loose anything when using that API instead of the python one?

cheers

Lawrence Kesteloot

unread,
Sep 15, 2012, 4:44:46 PM9/15/12
to humanio...@googlegroups.com
You're right, the REST documentation was obsolete. We used to only accept a single object, but changed it to accept a list for performance reasons. I've updated the REST API. (The change is not yet published.) Thanks for pointing that out and sorry for time it wasted you.

The Python API uses the REST API, so the REST API is at least as powerful, though the Python API does a few things locally for convenience. For example, the form name and form dispatch mechanism is a local artifact.

Lawrence



--
You received this message because you are subscribed to the Google Groups "humanio-discuss" group.
To post to this group, send email to humanio...@googlegroups.com.
To unsubscribe from this group, send email to humanio-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/humanio-discuss/-/Vo6-njL2DFMJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Øyvind Skaar

unread,
Sep 15, 2012, 5:39:51 PM9/15/12
to humanio...@googlegroups.com

Cool, thanks..

I'll put up a REST callback example when I've cleaned it up a little..

Reply all
Reply to author
Forward
0 new messages