Web service API for sample app