Session API
Log in / create a session
A log in can be done with a username and password. Persistent is for remember me.
POST /users/sessions
Content-Type: application/json
Body:
{
"userName":"name",
"password":"pass",
"persistent":true
}
Successful response:
Status: 201 OK or (401 NOT_AUTHORIZED) Content-Type: application/json Body: { "userId": 136 }
Log out
Request
DELETE /users/sessions
Successful response:
Status: 204 OK