You are not logged in.
Pages: 1
Hi,
May be you'll find it trivial, but I ended up creating several select services before finding out (as suspected)
that I could retrieve records simply by sending a WHERE parameter to the default REST engine.
Seems the complete list is stated nowhere else than in mormot.pas.
And dealing with strings in the WHERE clause was not so obvious.
May I suggest enhancing the documentation with a few non trivial examples as below?
http://localhost:8080/root/SampleRecord/?SELECT=id,name
http://localhost:8080/root/SampleRecord/?SELECT=id,name,time&STARTINDEX=2&RESULTS=4
http://localhost:8080/root/SampleRecord/?SELECT=id,name,time&WHERE=(name)=:("james"):or(name)like:("T%"):
http://localhost:8080/root/SampleRecord/?SELECT=id,name,time&SORT=name&DIR=desc
Also, a non trivial sample of service (ie returning rows via ORM) would be very helpful.
Thanks for this great framework,
I'm just scratching the surface! :-)
-
Didier
Last edited by DidiL (2015-01-23 22:52:25)
Offline
It is already documented.
See http://synopse.info/files/html/api-1.18 … PARAMETERS
Online
Pages: 1