Hi Mallah,

doc patches welcome! I know they are lacking.

Best regards, Alex


On 2017-03-01 07:43, Rajesh Kumar Mallah wrote:

Dear Dimitar/List  ,

indeed the example 1 below was correct.

The confusion resulted form multiple mistakes in my
observations and actions.

Sorry for the noise. Now my primary concern is sorted out.


Regds
mallah.




There are a couple of ways around that.

1. Search for that record id, for example:

  
http://10.100.102.38:3000/api/rest/general/members?limit=3&list_returns=holder1&list_returns=member_id&search.member_id=368
2. If it's a primary key or a unique key, you can easily fetch it:
http://10.100.102.38:3000/api/rest/general/members/368

Best regards,

On Tue, Feb 28, 2017 at 3:48 PM, Rajesh Kumar Mallah
<mal...@redgrape.tech>
wrote:


I am trying to use  Catalyst::Controller::DBIC::API::REST
to feed jtable with JSON

Eg :

the request

http://10.100.102.38:3000/api/rest/general/members?limit=3&;
list_returns=holder1&list_returns=member_id

Leads to response:


{
   "Records": [
     {
       "member_id": 366,
       "holder1": "Jinesh"
     },
     {
       "member_id": 367,
       "holder1": "Gita"
     },
     {
       "member_id": 368,
       "holder1": "Sheela"
     }
   ],
   "Result": "OK"
}


The url contains the parameter 'limit' as i configured count_arg as
'limit'
I need a simple example on how to pass the search param

eg i want to recordset to be restricted to member_id=> 368


could anyone kindly help.
I have done my research before approaching this list.


regds
mallah.





_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/
catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/





_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/



*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to