No, you cannot use web_rest method in RTE protocol. Basically what this protocol do, it records actions of embedded terminal (Ericom PowerTerm) using its API. So all functionality is limited by PowerTerm abilities.
You need to create a separate script using the web or web service protocol and figure out a way for the scripts to communicate with each other if you need to pass data between them. Likely with a VTS table.