a java app to provide rest api