Class ChatMessageController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.ChatMessageController
@RequestMapping("/api/chat")
@RestController
public class ChatMessageController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
createChatMessage
(Long commonsId, String content) org.springframework.http.ResponseEntity<Object>
getAllChatMessages
(Long commonsId, int page, int size) org.springframework.http.ResponseEntity<Object>
getChatMessages
(Long commonsId, int page, int size) org.springframework.http.ResponseEntity<Object>
getHiddenChatMessages
(Long commonsId, int page, int size) org.springframework.http.ResponseEntity<Object>
hideChatMessage
(Long chatMessageId) Methods inherited from class edu.ucsb.cs156.happiercows.controllers.ApiController
genericMessage, getCurrentUser, handleBadRequest, handleGenericException
-
Constructor Details
-
ChatMessageController
public ChatMessageController()
-
-
Method Details
-
getChatMessages
-
getAllChatMessages
-
getHiddenChatMessages
-
createChatMessage
-
hideChatMessage
-