api for accepting and rejecting friendship request