POST v1/authication/login
Request Information
URI Parameters
None.
Body Parameters
loginRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
None. |
|
| password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"username": "sample string 1",
"password": "sample string 2"
}
application/xml, text/xml
Sample:
<loginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ntblcpEWORS.Models.login"> <password>sample string 2</password> <username>sample string 1</username> </loginRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
loginResult| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| lastLogin | string |
None. |
|
| fullname | string |
None. |
|
| errorMsg | string |
None. |
|
| roleName | string |
None. |
|
| roleCode | string |
None. |
|
| isAdmin | boolean |
None. |
|
| canGetAlert | boolean |
None. |
|
| canLogin | boolean |
None. |
|
| accessToken | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"lastLogin": "sample string 2",
"fullname": "sample string 3",
"errorMsg": "sample string 4",
"roleName": "sample string 5",
"roleCode": "sample string 6",
"isAdmin": true,
"canGetAlert": true,
"canLogin": true,
"accessToken": "sample string 10"
}
application/xml, text/xml
Sample:
<loginResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ntblcpEWORS.Models.login"> <accessToken>sample string 10</accessToken> <canGetAlert>true</canGetAlert> <canLogin>true</canLogin> <errorMsg>sample string 4</errorMsg> <fullname>sample string 3</fullname> <isAdmin>true</isAdmin> <lastLogin>sample string 2</lastLogin> <roleCode>sample string 6</roleCode> <roleName>sample string 5</roleName> <success>true</success> </loginResult>