Appearance
Restful Login
About 127 wordsLess than 1 minute
apiAuthentication
2025-05-19
MethodPOST
Request URL
/plugin/datafor/api/extension/auth/loginDescription
This endpoint allows a user to log in. The login result is returned in JSON format.
Content Typeapplication/json
Response Examples
{
"msg": "login success",
"jsessionid": "1EFBB53E585762CBD4DDBF918FBF5347",
"data": "1",
"success": true
}{
"msg": "wrong password",
"success": false
}HTTP Responses
| HTTP Status Code | Meaning | Description | Data schema |
|---|---|---|---|
| 200 | OK | none | Inline |
Response Data Schema (HTTP 200)
| Name | Type | Required | Description |
|---|---|---|---|
msg | string | Yes | Descriptive message about the login attempt |
jsessionid | string | No | Session ID for the login, if any |
data | string | No | "1" if just logged in, "2" if previously logged in |
success | boolean | Yes | Indicates whether the login was successful |