POST api/User/login
Request Information
URI Parameters
None.
Body Parameters
LoginRequestName | 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/hnrevaLandApi.Models"> <password>sample string 2</password> <username>sample string 1</username> </LoginRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
LoginResultName | Description | Type | Additional information |
---|---|---|---|
id | integer |
None. |
|
name | string |
None. |
|
avatar | string |
None. |
|
token | string |
None. |
|
menu | Object |
None. |
|
message | string |
None. |
|
code | integer |
None. |
|
success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "id": 1, "name": "sample string 2", "avatar": "sample string 3", "token": "sample string 4", "menu": {}, "message": "sample string 6", "code": 7, "success": true }
application/xml, text/xml
Sample:
<LoginResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/hnrevaLandApi.Models"> <avatar>sample string 3</avatar> <code>7</code> <id>1</id> <menu /> <message>sample string 6</message> <name>sample string 2</name> <success>true</success> <token>sample string 4</token> </LoginResult>