Debe comenzar diseñando una API, que también pueden utilizar otros clientes. Una posibilidad simple es una API RESTful JSON.