REST API refactoring by Udara
Refactored a bit more and removed unwanted params and methods
Bit more refactoring at rest endpoint
Propogating rest endpoint resource refactoring to command line interface