Fixed issues calling the rest service
Refactored the rest webservices for group