1 | <?php |
||
33 | class CommentsApiController extends ApiController { |
||
34 | |||
35 | /** @var CommentService */ |
||
36 | private $commentService; |
||
37 | |||
38 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @NoAdminRequired |
||
48 | * @NoCSRFRequired |
||
49 | * @throws StatusException |
||
50 | */ |
||
51 | public function list(string $cardId, int $limit = 20, int $offset = 0): DataResponse { |
||
54 | |||
55 | /** |
||
56 | * @NoAdminRequired |
||
57 | * @NoCSRFRequired |
||
58 | * @throws StatusException |
||
59 | */ |
||
60 | public function create(string $cardId, string $message, string $parentId = '0'): DataResponse { |
||
63 | |||
64 | /** |
||
65 | * @NoAdminRequired |
||
66 | * @NoCSRFRequired |
||
67 | * @throws StatusException |
||
68 | */ |
||
69 | public function update(string $cardId, string $commentId, string $message): DataResponse { |
||
72 | |||
73 | /** |
||
74 | * @NoAdminRequired |
||
75 | * @NoCSRFRequired |
||
76 | * @throws StatusException |
||
77 | */ |
||
78 | public function delete(string $cardId, string $commentId): DataResponse { |
||
81 | } |
||
82 |