Class VoteService

java.lang.Object
com.ubs.backend.services.VoteService

@Path("feedback") public class VoteService extends Object
Service to up/downvote an answer/tag combo for the Chatbot
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Constructor Details

    • VoteService

      public VoteService()
  • Method Details

    • vote

      @GET @Produces("application/json") @Path("/vote") public javax.ws.rs.core.Response vote(@QueryParam("answerID") String answerIdString, @QueryParam("result") String voteParamBoolean, @QueryParam("revert") String isRevert, @QueryParam("tags") List<String> tagList, @QueryParam("matches") List<String> matchList, @QueryParam("question") String question)
      The main function to up/downvote
      Parameters:
      answerIdString - the answer from the bot
      voteParamBoolean - boolean if it is an upvote
      isRevert -
      tagList - the list of all Tags
      matchList -
      question -
      Returns:
      Response status 200 without content
      Since:
      17.07.2021