#discapp-14: #DISCAPP-14: Refactoring and send text plain rule to the API