org.wso2.carbon.registry.rest.api
Class Rate
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Rate
public class Rate
- extends RegistryRestSuper
This class to handle the rate relate REST verbs POST
|
Constructor Summary |
Rate()
|
|
Method Summary |
javax.ws.rs.core.Response |
rateResource(String resourcePath,
int value,
String JWTToken)
This method put a rating to a resource |
| Methods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper |
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rate
public Rate()
rateResource
public javax.ws.rs.core.Response rateResource(String resourcePath,
int value,
@HeaderParam(value="X-JWT-Assertion")
String JWTToken)
- This method put a rating to a resource
- Parameters:
resourcePath - - path of the resource in the registry spacevalue - - user's rating
- Returns:
- Response RatingModel - object eg:{"average":,"myRating":}
Copyright © 2015 WSO2. All rights reserved.