Class Rating
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Rating
This class is to handle the rating related REST verbs GET,DELETE.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.ResponseThis 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 resourceMethods inherited from class org.wso2.carbon.registry.rest.api.RegistryRestSuper
getBegin, getEnd, getPageSize, getResourcePath, getTenantID, getUserRegistry, getUserRegistry, setBegin, setEnd, setPageSize, setUserRegistry
-
Constructor Details
-
Rating
public Rating()
-
-
Method Details
-
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.
-
removeRating
public javax.ws.rs.core.Response removeRating(String resourcePath, @HeaderParam("X-JWT-Assertion") String JWTToken) this method delete the user's rating on the given resource- Parameters:
resourcePath- - path of the resource- Returns:
- Response - HTTP 204 No Content
-