Package com.ubs.backend.services
Class VoteService
java.lang.Object
com.ubs.backend.services.VoteService
Service to up/downvote an answer/tag combo for the Chatbot
- Since:
- 17.07.2021
- Author:
- Marc Andri Fuchs
-
Constructor Summary
Constructors -
Method Summary
-
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 botvoteParamBoolean- boolean if it is an upvoteisRevert-tagList- the list of all TagsmatchList-question-- Returns:
- Response status 200 without content
- Since:
- 17.07.2021
-