Skip to content
x1s edited this page Feb 14, 2012 · 1 revision

Login

Method Auth? URL
GET false /login/?user=:user&password=:password

log a user in.

in case of success

http 200 code
{"idPerson":"1","token":"4ec3be34eb7219.04770401"}
* this token is aim to be used in all services that requires "token" as a authentication parameter.

in case of any credential error

http 401 code
{"message":"wrong credentials"}

any other error

http 400 code
{"message":"invalid params"}

</td> 
GET false /login/:token
valid if a token still valid.

it is a valid session token

returns "true" and a 200 http code

it ha expired, invalid or any other related issue

returns false and a 401 http code.

GET false /login/recover?email=:email
password recover

email with new password was sent

returns "true" and a 200 http code

any error

returns false and a 400 http code.

Clone this wiki locally