Implemented RestService get & post methods.