Class CommentController
java.lang.Object
com.eeit87t3.tickiteasy.post.controller.CommentController
@RestController
@RequestMapping("/admin/api/post/comment")
public class CommentController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddComment(String authHeader, CommentEntity comment) updateComment(String authHeader, Integer commentID, CommentEntity comment)
-
Constructor Details
-
CommentController
public CommentController()
-
-
Method Details
-
addComment
@PostMapping("POST/") public ResponseEntity<Map<String,Object>> addComment(@RequestHeader("Authorization") String authHeader, @RequestBody CommentEntity comment) -
updateComment
@PutMapping("PUT/{commentID}") public ResponseEntity<Map<String,Object>> updateComment(@RequestHeader("Authorization") String authHeader, @PathVariable("commentID") Integer commentID, @RequestBody CommentEntity comment) -
delete
@DeleteMapping("DELETE/{commentID}") public ResponseEntity<Map<String,Object>> delete(@RequestHeader(value="Authorization",required=false) String authHeader, @PathVariable Integer commentID, jakarta.servlet.http.HttpSession session)
-