Thank you for the quick responses. But I am missing something important
about calling these methods through the gateway.
I seem to have both the user ID and the card ID in the response from
open-ils.auth.session.retrieve. But when I try calling
open-ils.pcrud.search.ac with either {"id":cardID} or {"usr":userID} I get
an empty payload in response.
Can you spot what I am doing wrong?
Here are the redacted URLs I tried:
https://catalog.cwmars.org/osrf-gateway-v1?service=open-ils.auth&method=open-ils.auth.session.retrieve¶m=%22
*authtoken*%22
-> "usrname": "coxken", ... "id": 409071, ... "card": 1344653
https://catalog.cwmars.org/osrf-gateway-v1?service=open-ils.pcrud&method=open-ils.pcrud.search.ac¶m=%22
*authtoken*%22¶m=%7B%22id%22:1344653%7D
-> {"payload":[],"status":200}
https://catalog.cwmars.org/osrf-gateway-v1?service=open-ils.pcrud&method=open-ils.pcrud.search.ac¶m=%22
*authtoken*%22¶m=%7B%22usr%22:409071%7D
-> {"payload":[],"status":200}
On Wed, Jan 20, 2016 at 10:44 AM, Bill Erickson <[email protected]> wrote:
>
> On Wed, Jan 20, 2016 at 10:23 AM, Bill Erickson <[email protected]>
> wrote:
>
>>
>> On Wed, Jan 20, 2016 at 10:18 AM, Thomas Berezansky <[email protected]>
>> wrote:
>>
>>> As a note, I believe that PCRUD search will also return all non-primary
>>> and non-active cards.
>>>
>>
>> Indeed that's true when fleshing the "cards" (virtual) field on the
>> user. When fleshing "card", you get the primary/active card.
>>
>
> Oh, right... If you search for cards by user ID, then it will return all
> cards, active or otherwise for the user. (I was thinking about fleshing
> cards on the user). Thanks for pointing that out, Thomas. Apologies for
> the misleading response.
>
> -b
>
>
>
--
-Ken