RESTful API for democracy application