Propogating rest endpoint resource refactoring to command line interface