POST api/Login/Login
Request Information
URI Parameters
None.
Body Parameters
LoginModels| Name | Description | Type | Additional information |
|---|---|---|---|
| js_code | string |
None. |
|
| AppID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"js_code": "sample string 1",
"AppID": 2
}
application/xml, text/xml
Sample:
<LoginModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WORK.Api.Models"> <AppID>2</AppID> <js_code>sample string 1</js_code> </LoginModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserModels| Name | Description | Type | Additional information |
|---|---|---|---|
| NickName | string |
None. |
|
| HeadImg | string |
None. |
|
| token | string |
None. |
|
| GUID | string |
None. |
|
| Auth | boolean |
None. |
|
| CompID | integer |
None. |
|
| LogoImgSrc | string |
None. |
|
| CompName | string |
None. |
|
| CompNameAbb | string |
None. |
|
| Power | UserPower |
None. |
|
| Version | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"NickName": "sample string 1",
"HeadImg": "sample string 2",
"token": "sample string 3",
"GUID": "sample string 4",
"Auth": true,
"CompID": 6,
"LogoImgSrc": "sample string 7",
"CompName": "sample string 8",
"CompNameAbb": "sample string 9",
"Power": {
"UserAdmin": true,
"CompAdmin": true,
"WorkPanel": true,
"User": {
"List": true,
"Edit": true,
"Del": true
},
"Comp": {
"List": true,
"Edit": true,
"Del": true
},
"CompReq": {
"Bind": true,
"Unbind": true
},
"ApiProj": {
"List": true,
"Edit": true,
"Del": true
}
},
"Version": "sample string 10"
}
application/xml, text/xml
Sample:
<UserModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WORK.Api.Models">
<Auth>true</Auth>
<CompID>6</CompID>
<CompName>sample string 8</CompName>
<CompNameAbb>sample string 9</CompNameAbb>
<GUID>sample string 4</GUID>
<HeadImg>sample string 2</HeadImg>
<LogoImgSrc>sample string 7</LogoImgSrc>
<NickName>sample string 1</NickName>
<Power>
<ApiProj>
<Del>true</Del>
<Edit>true</Edit>
<List>true</List>
</ApiProj>
<Comp>
<Del>true</Del>
<Edit>true</Edit>
<List>true</List>
</Comp>
<CompAdmin>true</CompAdmin>
<CompReq>
<Bind>true</Bind>
<Unbind>true</Unbind>
</CompReq>
<User>
<Del>true</Del>
<Edit>true</Edit>
<List>true</List>
</User>
<UserAdmin>true</UserAdmin>
<WorkPanel>true</WorkPanel>
</Power>
<Version>sample string 10</Version>
<token>sample string 3</token>
</UserModels>