Registration - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki
URL:
{serverAddress}/api/account/register
Method:
POST
Content-type:
application/json
Method for web application:
public static ObjectNode web_register(String login, String name, String email, String password)
in controllers.Accounts
Description:
Register user on server with given login, name, email, and MD5 hash of password.
Input:
{
"login": "your login",
"name": "your name and surname",
"email": "your email",
"password": "MD5 hash of your password"
}
Output OK:
{
"status": "ok"
}
Output error:
{
"status": "failed",
"reason": "reason of error"
}
Types of reasons:
json excepted
incorrect email
- blank value, or incorrect e-mail addressincorrect name
- blank valueincorrect password
- blank valueincorrect login
- blank valueLogin already exists
- this login is busy right now