Class ReactionRest

java.lang.Object
io.meeds.social.reaction.rest.ReactionRest

@RestController @RequestMapping("/reactions") public class ReactionRest extends Object
  • Constructor Details

    • ReactionRest

      public ReactionRest()
  • Method Details

    • getReactionOptions

      @GetMapping("options") @Secured("users") public List<io.meeds.social.reaction.model.ReactionOption> getReactionOptions(@RequestParam(name="objectType",required=false) String objectType)
    • getReactions

      @GetMapping("{objectType}/{objectId}") @Secured("users") public ReactionList getReactions(jakarta.servlet.http.HttpServletRequest request, @PathVariable("objectType") String objectType, @PathVariable("objectId") String objectId, @RequestParam(name="reactionId",required=false) String reactionId, @RequestParam(name="offset",required=false,defaultValue="0") long offset, @RequestParam(name="limit",required=false,defaultValue="20") long limit)
    • setReaction

      @PutMapping("{objectType}/{objectId}") @Secured("users") @ResponseStatus(NO_CONTENT) public void setReaction(jakarta.servlet.http.HttpServletRequest request, @PathVariable("objectType") String objectType, @PathVariable("objectId") String objectId, @RequestBody ReactionInput reactionInput)
    • deleteReaction

      @DeleteMapping("{objectType}/{objectId}") @Secured("users") @ResponseStatus(NO_CONTENT) public void deleteReaction(jakarta.servlet.http.HttpServletRequest request, @PathVariable("objectType") String objectType, @PathVariable("objectId") String objectId)