Log off - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki

URL:

{serverAddress}/api/account/logoff

Method:

POST

Content-type:

application/json

Method for web application:

public static ObjectNode web_logoff(String login, String sid) in controllers.Accounts

Description:

Log off and destroy current session.

Input:

{
  "login": "your login",
  "sid": "id of current session"
}

Output OK:

{
  "status": "ok"
}

Output error:

{
  "status": "failed",
  "reason": "reason of error"
}

Types of reasons:

  • json excepted
  • incorrect data
  • incorrect sid - incorrect session id