Hai Ruchira..!

                  Current REST API supports if you pass the resource path
you would get the associated rating given by the user who belongs to the
access token which is used on the HTTP request.

Suppose to get the top rated resource- There are two concerns about this.

1) Top rated resource by a particular user - for this we have to retrieve
all the resources uploaded by the given  user then get the associated
rating and then get the highest rating and associated resource.
 or
2) top rated resource on the G-Reg . For this scenario we have to consider
rating given to all the resources by all the users.

According to my knowledge, Since the access token specific to a
client/user, the option 2 won't be possible.

userRegistry.getRating(resourcePath, username) - this is the method we have
in registry api. In here We use the username associated with the person who
belongs to the access token.

By the way, I did some changes to the REST API. Vijitha will commit the
patch.

Senaka, please add if I am misunderstanding/ any thoughts?

Thanks!
Ragu

On Thu, Jan 31, 2013 at 5:52 PM, Ruchira Wageesha <[email protected]> wrote:

> Hi Senaka/Ragu,
>
> How can we achieve the $subject? i.e. In order to get more fine grained
> result set, is it possible to execute a search query via the REST API?
>
> Thanks,
> Ruchira
>
> --
> *Ruchira Wageesha
> Senior Software Engineer & Member, Management Committee, Development
> Technologies*
> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com*
> *
> email: [email protected],   blog: ruchirawageesha.blogspot.com,   mobile: +94
> 77 5493444*
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to