Class VotesControllerController<T>
java.lang.Object
org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
org.craftercms.social.controllers.rest.v3.comments.VotesControllerController<T>
-
Field Summary
Fields inherited from class org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
notificationService, socialServices, ugcService -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.craftercms.social.controllers.rest.v3.comments.AbstractCommentsController
context, getContentType, getCurrentProfile, parseAttributes, userId
-
Constructor Details
-
VotesControllerController
public VotesControllerController()
-
-
Method Details
-
voteUp
@RequestMapping(value="{id}/votes/up", method=POST) @ResponseBody public T voteUp(@PathVariable("id") String id) throws SocialException - Throws:
SocialException
-
voteDown
@RequestMapping(value="{id}/votes/down", method=POST) @ResponseBody public T voteDown(@PathVariable("id") String id) throws SocialException - Throws:
SocialException
-
voteNeutral
@RequestMapping(value="{id}/votes/neutral", method=POST) @ResponseBody public T voteNeutral(@PathVariable("id") String id) throws SocialException - Throws:
SocialException
-