Class Rating


  • @Path("/rating")
    public class Rating
    extends RegistryRestSuper
    This class is to handle the rating related REST verbs GET,DELETE.
    • Constructor Detail

      • Rating

        public Rating()
    • 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.
      • 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