Web service API for Java sample app