On 2016-02-06 08:32, Peter Müller wrote:
> I'm working with the JSON-RPC interface and coming along the above example
> request to read records.
>
> Is there a way to get all records/fields at once ? I try empty list and
> null for the id's and fields, but w/o success.
JSON-RPC interface just follow the standard:
http://json-rpc.org/
With few special behaviour:
- the two first parameters are the user id and the session
- the parameter at the position RPC.instantiate will be instanciated
automatically
- the last parameter must be the context dictionary.
So for your question, you should use the ModelStorage.search method
first to get the ids or the ModelStorage.search_read.
> BTW: I found different very short docs or comments about the json-rpc
> calls, methods and params. Is there anything a little bit more complete.
Now, you know the details, you can submit a documentation patch :-)
--
Cédric Krier - B2CK SPRL
Email/Jabber:
cedric...@b2ck.com
Tel:
+32 472 54 46 59
Website:
http://www.b2ck.com/