Appearance
Feed comment listing, creation, updates, deletes, and single comment retrieval.
Comment routes are protected by PortalPolicy and then validated against feed and space permissions inside the controller.
PortalPolicy
GET
/feeds/{feed_id}/comments
CommentsController@getComments
POST
CommentsController@store
/feeds/{feed_id}/comments/{comment_id}
CommentsController@update
PATCH
CommentsController@patchComment
DELETE
CommentsController@deleteComment
/profile/{username}/comments
ProfileController@getComments
/comments/{id}
CommentsController@show
/admin/courses/{course_id}/comments
CourseAdminController@getCourseComments
Comments API
Feed comment listing, creation, updates, deletes, and single comment retrieval.
Authentication
Comment routes are protected by
PortalPolicyand then validated against feed and space permissions inside the controller.Endpoints
GET/feeds/{feed_id}/commentsCommentsController@getCommentsPOST/feeds/{feed_id}/commentsCommentsController@storePOST/feeds/{feed_id}/comments/{comment_id}CommentsController@updatePATCH/feeds/{feed_id}/comments/{comment_id}CommentsController@patchCommentDELETE/feeds/{feed_id}/comments/{comment_id}CommentsController@deleteCommentGET/profile/{username}/commentsProfileController@getCommentsGET/comments/{id}CommentsController@showGET/admin/courses/{course_id}/commentsCourseAdminController@getCourseComments