Reactions API
Feed/comment reactions plus survey vote and survey voter endpoints.
Authentication
Reaction routes use PortalPolicy and enforce feed or comment access checks inside the relevant controller.
Endpoints
| Method | Path | Edition | Operation | Controller |
|---|---|---|---|---|
POST | /feeds/{feed_id}/react | Core | Toggle Feed Reaction | CommentsController@addOrRemovePostReact |
POST | /feeds/{feed_id}/comments/{comment_id}/reactions | Core | Toggle Comment Reaction | CommentsController@toggleReaction |
GET | /feeds/{feed_id}/reactions | Core | List Feed Reactions | ReactionController@getByFeedId |
POST | /feeds/{feed_id}/apps/survey-vote | Core | Cast Survey Vote | ReactionController@castSurveyVote |
GET | /feeds/{feed_id}/apps/survey-voters/{option_slug} | Core | List Survey Voters | ReactionController@getSurveyVoters |
GET | /comments/{comment_id}/reactions | Core | List Comment Reactions | ReactionController@getByCommentId |