Class Rating
- java.lang.Object
-
- org.wso2.carbon.registry.rest.api.RegistryRestSuper
-
- org.wso2.carbon.registry.rest.api.Rating
-
@Path("/rating") public class Rating extends RegistryRestSuperThis class is to handle the rating related REST verbs GET,DELETE.
-
-
Constructor Summary
Constructors Constructor Description Rating()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsegetRating(String resourcePath, String JWTToken)This method get the rating given for the requested resource.javax.ws.rs.core.ResponseremoveRating(String resourcePath, String JWTToken)this method delete the user's rating on the given 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
-
getRating
public javax.ws.rs.core.Response getRating(String resourcePath, @HeaderParam("X-JWT-Assertion") String JWTToken)
This method get the rating given for the requested resource.- Parameters:
resourcePath- - Path of the resource in the registry.- Returns:
- Response RatingModel object. HTTP 200 OK.
-
-