Add wrappers for common rest api to make them callable from flutter code. Add tests and sample code for these APIs.