Create POST request responsible for accepting friend request. In practice, it's just moving userID from sentFriendsRequest and receivedFriendsRequests array to friends array.
Example request
API_URL/friends/accept
Body
userID - of a user to be accepted as friend
Response
No content in response necessary. Just 204 (no content).
Create POST request responsible for accepting friend request. In practice, it's just moving userID from sentFriendsRequest and receivedFriendsRequests array to friends array.
Example request
API_URL/friends/accept
Body
Response
No content in response necessary. Just 204 (no content).