Class Rate
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Rate
This class to handle the rate relate REST verbs POST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponserateResource(String resourcePath, int value, String JWTToken) This method put a rating to a resourceMethods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Rate
public Rate()
-
-
Method Details
-
rateResource
public javax.ws.rs.core.Response rateResource(String resourcePath, int value, @HeaderParam("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": }
-