org.wso2.carbon.registry.rest.api
Class Rating
java.lang.Object
org.wso2.carbon.registry.rest.api.RegistryRestSuper
org.wso2.carbon.registry.rest.api.Rating
public class Rating
- extends RegistryRestSuper
This class is to handle the rating related REST verbs GET,DELETE.
|
Method Summary |
javax.ws.rs.core.Response |
getRating(String resourcePath,
String JWTToken)
This method get the rating given for the requested resource. |
javax.ws.rs.core.Response |
removeRating(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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rating
public Rating()
getRating
public javax.ws.rs.core.Response getRating(String resourcePath,
@HeaderParam(value="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(value="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
Copyright © 2015 WSO2. All rights reserved.