Class Rate
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.Rate
-
@Path("/rate") public class Rate extends RegistryRestSuperThis class to handle the rate relate REST verbs POST
-
-
Constructor Summary
Constructors Constructor Description Rate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponserateResource(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
-
-
-
-
Method Detail
-
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": }
-
-