Class ConnectionController
java.lang.Object
callofproject.dev.community.controller.ConnectionController
@RestController
@RequestMapping("api/community/personal-connection")
public class ConnectionController
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>
acceptConnectionRequest
(UUID userId, UUID friendId, boolean answer) org.springframework.http.ResponseEntity<?>
blockConnection
(UUID userId, UUID friendId) org.springframework.http.ResponseEntity<?>
getBlockedConnections
(UUID userId) org.springframework.http.ResponseEntity<?>
getConnectionRequests
(UUID userId) org.springframework.http.ResponseEntity<?>
getConnections
(UUID userId) org.springframework.http.ResponseEntity<?>
removeConnection
(UUID userId, UUID friendId) org.springframework.http.ResponseEntity<?>
sendConnectionRequest
(UUID userId, UUID friendId) org.springframework.http.ResponseEntity<?>
unblockConnection
(UUID userId, UUID friendId)
-
Constructor Details
-
ConnectionController
-
-
Method Details
-
sendConnectionRequest
-
acceptConnectionRequest
-
removeConnection
-
blockConnection
-
unblockConnection
-
getConnections
@GetMapping("/get/connections") public org.springframework.http.ResponseEntity<?> getConnections(@RequestParam("user_id") UUID userId) -
getConnectionRequests
@GetMapping("/get/connection-requests") public org.springframework.http.ResponseEntity<?> getConnectionRequests(@RequestParam("user_id") UUID userId) -
getBlockedConnections
@GetMapping("/get/blocked-connections") public org.springframework.http.ResponseEntity<?> getBlockedConnections(@RequestParam("user_id") UUID userId)
-