Implement a new API endpoint for getting a list of users blocked by a user.
Describe how a solution to your proposed task might look like (and any alternatives considered).
Using the URL path /block with a HTTP GET request, rows from the BLOCKED_BUDDIES database table can be selected in queries where USER_BLOCKER_ID matches userId for getting a list of user's blocked by userId. This can be returned in the HTTP response entity as a list of UserDTO.
Describe the task that needs to be done.
Implement a new API endpoint for getting a list of users blocked by a user.
Describe how a solution to your proposed task might look like (and any alternatives considered).
Using the URL path
/block
with a HTTP GET request, rows from theBLOCKED_BUDDIES
database table can be selected in queries whereUSER_BLOCKER_ID
matchesuserId
for getting a list of user's blocked byuserId
. This can be returned in the HTTP response entity as a list ofUserDTO
.Notes