Doesn't the query
/people/@me/@friends?filterBy=id&filterOp=containers&filterValue=<userId>
make more sense?

or if your looking to see if a specific userId is a friend of '@me', why not
do a get on:

/people/@me/@friends/<userId>

if that returns a 404, it's not a friend.. if you get a record back, (s)he
is a friend

On Fri, Feb 13, 2009 at 12:32 PM, Ben Smith <[email protected]> wrote:

> Please could someone have an opinion about
> https://issues.apache.org/jira/browse/SHINDIG-904
>
> There's a chance I need to provide a new patch as there have been quite a
> few changes since I originally provided it.
>
> It is quite important for me to be able to provide the standard parameters
> for 0.9:
> http://opensocial-resources.googlecode.com/svn/spec/draft/REST-API.xml#standardQueryParameters
>  and
> these need to be available to getPerson() to support the following query:
> /people/@me/@self?filter...@friends&filterOp=contains&filterValue=<someUserId>
>
> I realise that this change involves changing an SPI interface but this is
> the smallest, simplest change that was discussed a while ago, which I then
> submitted this patch for.
>
> Cheers,
> Ben Smith
>
>
>

Reply via email to