Class Rate


@Path("/rate") public class Rate extends RegistryRestSuper
This class to handle the rate relate REST verbs POST
  • Constructor Details

    • Rate

      public Rate()
  • Method Details

    • 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 space
      value - - user's rating
      Returns:
      Response RatingModel - object eg:{"average":,"myRating":}