Repository navigation
Home
###Welcome to the voters_i1b wiki!
The REST Voter interface supports POST petitions to a web service, allocated in localhost:8080.
-
In order to access Voter info a POST to localhost:8080/user in JSON or XML with the email and password must be made. The information of the user will be returned in JSON format to the user. Examples:
{"email":"dani@example.com", "password":"1234"}OR
<voter> <email>dani@example.com</email><password>1234</password> </voter> -
In order to change a Voter password a POST to localhost:8080/changePass in JSON or XML with the email, password and new password must be made. A response OK will be returned if the changes are applied.Examples:
{"email":"dani@example.com", "password":"1234", "newPassword":"123"}OR
<voter> <email>dani@example.com</email><password>1234</password><newPassword>1234</newPassword> </voter>
A get petition to localhost:8080/ will return a form to access Voter information, using the REST api above.
Database access is done towards a distributed Database in http://digital-skill.com:3306
2016 - Software Architecture - University of Oviedo